All devices targets on xcode become "unavailble" - iphone

I have tried to install xcode 4.6 together with my existing xcode 6.3.
I have face issues during installation.
one of the solutions was to run this command:
/Developer/Library/uninstall-devtools --mode=all
after that i could not run under devices , for all devices that i have it gives me this error :
did any one face this before ?
UPDATE :
itunes also can not see my devices.
I have reinstalled xcode but no changes.

I Think you will be able to find out some helpful points from these links.
Xcode iOS project only shows "My Mac 64-bit" but not simulator or device
Ineligible Devices section appeared in Xcode 6.x.x
Xcode doesn't see my iOS device but iTunes does
https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/LaunchingYourApponDevices/LaunchingYourApponDevices.html
still if it is not done please apologize me.

Reinstalling the Mac OS resolved the problem.

Related

xib edit getting crash in xcode5

I have an application which is totally developed in xcode 4.6 ad now it is in app store also. Now i'm going to update the app in iOS7 also for that i upgraded my mac OS and xcode. my mac OS version is 10.8.5 and i installed xcode 5 also. Now my problem is xcode getting crash immediately when i edit and save the xib.
I tried all these ways.
1. Xcode 5 crashes -- Xcode quit unexpectedly
2. uninstall my xcode completely using this sudo /Developer/Library/uninstall-devtools --mode=all and install again
You can try this :
When you open a xib file that was created in Xcode 4 in Xcode 5 you are prompted to upgrade the file to the new format. You want to only do it if all the people working on the project use Xcode 5 because the new files can’t be opened by older versions of Xcode.
Refer this links :
How to disable Xcode 5 automatically upgrade xibs to iOS7 appearance
http://nilsou.com/blog/2013/08/07/xcode-5-finally-makes-interface-builder-a-viable-option-for-teams/
I hope it will be helpful.
Yes this was the problem with Xcode version DP4 and DP5. IF you are using these version then your Xcode5 will get crashed while adding/Editing XIB"S. I guess you should use Full version XCODE5 . This problem will be resolved.
Reset your simulator. And delete old app in simulator. I think this may work.

iPhone with iOS 6 and Xcode 4.2 issue

I have upgraded my iPhone to iOS 6, however I am currently on Xcode 4.2 (on Snow Leopard). Now I am getting this error message:
The version of iOS on “xxx xxx” does not match any of the versions of
iOS supported for development with this installation of the iOS SDK.
Please restore the device to a version of the iOS listed below, or
update to the latest version of the iOS.
Is it possible to restore my iPhone to older version say 5.1 or some how make my Xcode to support/recognize iOS6?
I followed the following steps, to resolve my issue by making Xcode to support iOS 6:
1.First download Xcode 4.5 .dmg file from Here (You would need developer account).
2.Then mount this image and use "Show Package Contents" from context menu.
3.Then copy the following folder
Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/6.1
(10A403)
to your mac's following folder (This path may differ from mac to mac based on its version. On Snow Leopard you may find the Developer folder in Finder under PLACES section, and probably on Lion, you have to right click the Xcode.app and have to use Show Package Contents):
Developer/Platforms/iPhoneOS.platform/DeviceSupport
4.Similarly copy the iOS 6 SDK folder from following directory:
Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk
to your mac's following folder
Developer/Platforms/iPhoneOS.platform/Developer/SDKs
5.Also copy version.plist from Contents/Developer/Platforms/iPhoneOS.platform folder to your mac's Developer/Platforms/iPhoneOS.platform folder.
6.Re-start Xcode and re-connect the device(s).
Bingo !! now Xcode supports recognizes iOS6 device(s) and even I am able to run and debug my app (built for older SDKs) on my iPhone with iOS6 (I am not sure about iPhone 6.0 simulator though).
However, answer to How to restore iPhone to older version say 5.1 is still pending.
You cant debug iO6 device in Xcode 4.2. iO6 device debugs only in Xcode 4.5 (latest one). And most importent for installing Xcode 4.5, in your machine must have at least Lion Operating System.For efficiently debugging of iOS device, You must upgrade your OS.
I had the exactly same problem !
Downgrading iOS 6 in your iPhone is not officially supported by Apple anymore :
https://discussions.apple.com/thread/4533316?start=0&tstart=0
What works for me was to install Lion in an external HD USB, upgrade Xcode to the latest version and upgrade the Provisioning Profiles in my Apple Developer account for this environment.
Upgrade to Xcode 4.5 (and OSX mountain lion). No previous version of Xcode supports iOS 6. You can also check if you can restore your phone using a previous version of iOS by getting the .ipsw file and option-clicking on "restore" button when selecting your device on iTunes.

IOS 5.0.1 With XCode 4.2.1 Saying "does not match any of the versions of iOS"

I am currently on Xcode 4.2.1 and I am running an IPad 1 using 5.0.1. However, I am getting this error message:
The version of iOS on “Personal iPad” does not match any of the
versions of iOS supported for development with this installation of
the iOS SDK. Please restore the device to a version of the OS listed
below, or update to the latest version of the iOS SDK; which is
available here.
OS Installed on Personal iPad
5.0.1 (9A405)
Xcode Supported iOS Versions
That's right! It is giving me absolutely no supported iOS versions. I have seen other posts about this for older versions of Xcode/IOS, but they also had supported versions.
Edit: I can run the program just fine in the iOS device simulator. It runs in IOS 5. Also, my provisioning profiles are listed under the device and they have matched my certificate in the KeyChain.
Ok! I downloaded the installer program for XCode. Uninstalled XCode and reinstalled it through the installer program and it works like a charm.
So, I ran this to uninstall it:
sudo /Developer/Library/uninstall-devtools –mode=all
Then I just used the installer from the App Store and now it works just fine with my iPad.
Thanks.
I didn't need to uninstall xcode.
just start the installer and press "update"...
For those who wan't to avoid upgrading Xcode, do the following:
Download the Xcode version dmg containing the iOS SDK you need
Make sure Xcode is not running
Double click the downloaded Xcode dmg, right click the Xcode.app icon, choose "Show Package Content"
Copy Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ to /Developer/Platforms/iPhoneOS.platform/Developer/SDKs (on you local machine)
Copy Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ to /Developer/Platforms/iPhoneSimulator.platform/Developer (on you local machine)
Copy Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ to /Developer/Platforms/iPhoneOS.platform/DeviceSupport (on you local machine)
Right click Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/, choose "Make Alias", rename the alias to "Latest"
Start Xcode

Xcode 4 will no longer run apps on 4.2.10 device (CDMA iPhone)

Up until today, I have been able to test my app on my CDMA iPhone, running 4.2.10. I am building against the 4.3 SDK, with a deployment target of 4.0.
After restarting my phone today, Xcode will no longer allow me to test the app on my phone, with this message in the Organizer window: "The version of iOS on "iPhone" does not match any of the versions of iOS supported for development with this installation of the iOS SDK. Please restore the device to a version of the OS listed, or update to the latest version of the iOS SDK"
Unfortunately there are some bugs with location services in the simulator, so I can't use that for testing either.
Can I even install the 4.2 SDK in Xcode 4? Is anyone else having this problem, or (hopefully) does anyone know how to fix it? Thanks for any help!
If you install xcode 4 it will actually gather the build chain from your phone and use it for compiling. You can see this in the organizer window (Window->Organizer?).
You know I had that same issue i found that I had to download the latest xcode and reinstall because for some reason the ios that came with xcode knew how to build on my phone. Sorry man.

"No provisioning iOS device connected"

About 3 months ago I set up my iPhone for development; installed the provisioning profile, updated the device to the latest version of iOS, namely 4.3.3 (8J2) and testing applications on my iPhone worked 100%.
Today I went back to working on one of my iPhone applications after not having worked in XCode for about a month, and now I do not seem to be able to deploy applications to my iPhone. When I try deploy and run on my iPhone, I get the message "No provisioning iOS device connected", even though my iPhone is connected.
If I look in the organizer window of XCode, I see my iPhone listed there under DEVICES, but I see the following message when I select my iPhone entry:
The version of iOS on “Bruce Hill’s iPhone” does not match any of the versions of iOS
supported for development with this installation of the iOS SDK. Please restore the
device to a version of the OS listed below, or update to the latest version of the iOS
SDK; which is available here.
OS Installed on Bruce Hill’s iPhone
4.3.3 (8J2)
Xcode Supported iOS Versions
4.3.3 (8J2)
4.2 (8C134)
4.1
4.0
4.0.2
4.0.1
3.2
3.2.2
3.2.1
3.1
3.1.3
3.1.2
Does anyone have an idea what is going wrong here and why XCode seems to think that my iPhone has an unsupported version of iOS installed, when in fact the latest version is installed?
UPDATE:
I have tried restarting my Macbook Pro, doing a hard reboot of my iPhone and removing my iphone entry in the organizer. None of these actions helped. My iPhone keeps getting listed in the organizer with an orange circle and if I hover over my iPhone entry I get a tooltip message that says "This device is busy or otherwise unusable by Xcode."
I did notice that in my developer information in System Profiler it only shows sdk 4.2 (8C134) installed, not 4.3.3 (8J2), even though Xcode lists it as being present and supported in the message I quoted above. Here is my developer information:
Version: 3.2 (10M2423)
Location: /Developer
Applications:
Xcode: 3.2.5 (1760)
Interface Builder: 3.2.5 (823)
Instruments: 2.7 (3017)
Dashcode: 3.0.2 (333)
SDKs:
Mac OS X:
10.4: (8S2167)
10.5: (9L31a)
10.6: (10M2423)
iPhone OS:
4.2: (8C134)
iPhone Simulator:
3.2: (7W367a)
4.0: (8A400)
4.1: (8B117)
4.2: (8C134)
I think what happened here is that I installed Xcode and then later did an update of my iPhone to iOS 4.3.3. This problem then occurred because my Macbook Pro actually didn't have the SDK for 4.3 installed, even though Xcode seemed to think that it was installed.
So, I got this working by downloading an installing Xcode 4.0.2 and iOS SDK 4.3. I downloaded Xcode from here: http://developer.apple.com/xcode/
Once Xcode 4.0.2 was installed and running, I connected my iPhone, it showed the orange dot again briefly (for about 10 seconds or so) and then this turned to a green dot and I was able to deploy my application to my device again... FINALLY!! :) In my developer settings in System Profiler, I also see iPhone OS: 4.3:(8H7) listed there now. I think that this issue would also have been resolved by installing Xcode 3.2.6 with iOS SDK 4.3, as this would, I think, also have resolved the missing or corrupt SDK 4.3 on my Macbook, but I chose to download and install the latest version.
So, bottom line: Xcode working again! I am happy! :)
I had a similar problem with my 3GS and i solve it by resetting iPhone's developer configuration. Try to hard reset your device (here' the link - don't worry, your dta will survive). Then remove your device from Xcode organizer and add it again.
Also try 'Cleaning' your Xcode project and just turning off your phone and back on again. Restart your computer while you're at it. After it's back up, open Xcode, then plug in the device. It should do its thing then start working again. I had the same issue a few times when I updated and hadn't disconnected/reconnected everything.