Ineligible Devices section appeared in Xcode 6.x.x - ios

After installing Xcode 6 my devices moved to greyed-out section Ineligible Devices and I can't select them as deploy target:
Update:
This error occurs in all versions of Xcode 6.x.x.
There are so many different reasons causing this problem
Check this solution list for more details.

With the release of Xcode 6.3.1, check first the Update 5
Verify that "iOS Deployment Target" is <= the version of your iDevice.
You find this option in "Build Settings" tab when you click on a target of your project in Xcode.
Then if does not work, try to restart Xcode. Sometimes we have to restart the Mac and iPhone/iPad. Take a look at the Updates below before restarting Xcode
Update: in Yosemite, Xcode 6.0.1 does not support iOS 8.1, you have to update to Xcode 6.1 if you want to debug on iOS 8.1 device, or you will probably have the same problem as described in the topic
Update 2: Xcode Beta 6.3 does not support iOS 8.2 (and also 8.1 - thanks #steveb). You won't see your device in deploy target list. I don't know if other versions are supported.
Update 3. Use Xcode 6.2 instead of Xcode 6.3 beta in order to debug with a device running iOS 8.2
Updated 4 : for Xcode 6.3 (and eventually 6.3 beta if someone use it :) ), if you have this problem, just go to Product > Destination to select your device. Even though it says your device is ineligible, it will still allow you to select it. If your device version is >= target version, the build should work. It must be a bug for Xcode 6.3 in debug with iOS 8.3 (or maybe other iOS version) (thanks #einfach).
Update 5: Apple released Xcode 6.3.1 that fix the issue of ineligible device. If you have this problem with Xcode 6.3, upgrade to XCode 6.3.1
From Release Notes (Xcode 6.3.1):
Fixed: Devices previously listed as "ineligible for running”
erroneously are listed correctly. (20121178)

There is a lot of options (10 23 29 answers for this question!), that can cause this error. And no one is 100% solve this issue. Here is summarise of all solutions.
First of all:
0. Update to latest Xcode version
Most of the reasons, that cause this problem fixed in Xcode version 6.3.1 (6D1002 published April 21, 2015)
List of solutions in order frequency of occurrence:
The most likely solution::
In Xcode status go to: Menu bar-> Product -> Destination and find your device. It will be listed under Ineligible section
Select your device. After you will be able to build and deploy to device! (thanks, #joshstaiger)
If it doesn't work:
iOS Deployment Target should be <= of the version of your device.
You find this option in Build Settings tab when you click on a target of your project in Xcode.
If version is correct - try to restart Mac and iPhone/iPad simultaneously. It resolve this issue in most cases! (thanks, #HoaParis)
Finally if either doesn't work - try to do this magic actions:
switch iOS Deployment Target to 8.1
restart Xcode
switch back to desired version.
Other problems, that cause this issue:
Xcode Beta 6.3 does not support iOS 8.2 (and also 8.1). You won't see your iDevice in deploy target list.
Use Xcode 6.2 instead of Xcode 6.3 beta in order to debug with an iDevice iOS 8.2
Xcode 6.3 requires Unity 4.6.4
If you're using an older Unity version (e.g. 4.6.3) you'll always get your devices in the Ineligible Devices section (thanks, #d4rk)
Also it appears in case of changing name of Xcode project. The fix it - create a new scheme by selecting Manage Schemes > (+) button. (thanks, #dale-moore)
Beta to Release upgrade of Xcode can require upgrading iOS or watchOS from beta to release version. For example, when switching from Xcode 8 beta 6 to Xcode 8 release, watchOS 3 beta is listed as unsupported.

Everyone should note that there seems to be a bug in XCode 6.3 (Beta and GM) that is aggravating this problem.
I have iOS 8.3 installed on my device. Setting the build target to iOS <= 8.3 did not help. Nor did any of the other solutions posted.
What worked for me:
Go to the Product Menu > Destination and select your device. It will be listed under "Ineligible", but you will still be able to select it. After doing this, I was able to build and deploy to my device.

I had a similar issue and for me I had upgraded to iOS8 and also changed the name of my Xcode project. The fix for me was to create a new scheme by selecting Manage Schemes > (+) button.
After doing this, my list of devices returned.

What worked for me is to install XCode 6.1 (compatible with iOS 8.1)

Besides setting iOS Deployment Target to iOS 8.0, also restart your iOS8 iPhone/iPad. This did the trick for me.

You can try below solutions to run build in your device.
Restart your iOS device (If device is recently updated) and your Xcode.
Make Sure that in build settings "iOS Deployment Target" is <= the version of your iDevice.
Otherwise you can goto - Product > Destination, select your device which would be showing as ineligible device.You will be able to select your device and run your build.
I also came across that if you have the iOS 8.4 then your Xcode doesn't have the SDK for iOS 8.4 due to which devices show as ineligible. To solve this issue
Download Xcode 6.4

My iPhone has updated to iOS8.1. My Xcode version is 6.0.1, and my mac os version is 10.10. When I want to run app in my iPhone, there is a section named Ineligible Devices(OS Version). Then I update Xcode to 6.1 version, solved problem.
Part of Xcode 6.1 release note: Includes SDKS for OS X 10.10 Yosemite, OS X 10.9 Mavericks, and iOS 8.1.
That is, Xcode 6.0.x don't support iOS 8.1.

My solution was that I had recently upgraded my iOS device to 8.3 and Xcode still didn't recognize it. The fix was to simply upgrade Xcode to 6.3 :)

After trying the 2 answers above (changing deployment target and restarting my iOS device), what finally fixed it for me was restarting my Mac.

For iOS 9.1+ devices, the Xcode version should be upgraded to 7.1 (even 7.0x will not work)

I simply restarted my Mac and my iPhone 6 and the problem was solved. I never had to change my deployment target.

Changing your deployment target is not a good idea to solve this problem (it will change which iOS versions you support on the app store).
What I did is restart just Xcode and it was fixed.

I agree with txulu, changing the deployment target is a ridiculous idea. I need to support devices back at least one version, that is non-negotiable to me.
Restarting my iPhone 5 after updating to iOS 8.1 and Xcode to 6.1 worked for me.

Simply deploying to another device and then switching back to the former 'ineligible' device worked here.
(saved the hassle of restarting anything)

In my case I had to reattach device and when it asks press "Trust this computer", then my device appears available again in xCode

make sure the deployment target version in setting is lower or equal than the iphone version
if the deployment target is 7.1 but the iphone is 7.0.3
you will see that error message

Ran into the same issue, using Unity3D
=> Xcode 6.3 requires Unity 4.6.4
If you're using an older Unity version (e.g. 4.6.3) you'll always get your devices in the Ineligible Devices section

Upgrade XCode to ensure that it supports your current iOS version on device.
(In my case, my phone was on iOS 9.1.x) `but XCode version was 7, which supported iOS 9.0 devices)

I changed my deployment target to 7.1 the same as my iphone, and now I can run swift programs on it. It was on 8.0 and showed up as ineligible.

I set my "iOS Deployment Target" in "Project" and "Targets" from 7.1 to 8.0 and restarted Xcode (with "Quit") and it worked.

I can confirm that the answer it to upgrade Xcode to 6.1. If you are using Xcode 6.0.x you will not be able to select a device running 8.1. Your deployment targets and OS version should have nothing to do with this.
If your OS version is greater than 10.9.4 I would recommend this. First, un-attaching all devices. Download Xcode 6.1. After opening the new version of Xcode attach your device. You should be good to go.
Another good thing would be to look at the release notes. It's and easy read and gives you a general idea of what still needs to be fixed.

My iPad was 8.0, but i had deployment target set to 8.1. I changed the deployment target in build settings, and immediately, the ipad moved out of the "ineligible" category. (I am on Yosemite and XCode 6.1)

I'm using the 6.3 Xcode Beta. I had the same issue as above. I restarted my computer and phone but did not work. Simply went to the build target under build settings and changed build target to 8.1. I hope this is fixed in the next released. Make sure that after you change your build setting - you need to restart your device and Xcode!

Please check you device iOS version and your Xcode application build target version. This might be causing the issue.

My answer, perhaps listed already but i did not notice, was simple: I deleted the app in question from the target itself, then fired up Xcode and the target was then available. And yes, i tried most of the other suggestions, and was resorting to activating the target from the Product menu, but that was getting tedious.

If you have a chance to run any project on the 'ineligible' device from other Mac with Xcode, try it and then reconnect the device to your Mac (without restarting Xcode/Mac).
For me, after doing that, the 'ineligible device' section disappears and my device returns to the normal status.
Hope it helps for someone.

Fixed in Xcode version 6.3.1 (6D1002) published April 21, 2015.
At least the problem magically went away for me after installing this Xcode version.

Tried all possible Updates, with Xcode 6.3, iOS 8.3 and OSX 10.10.3, but didn't got a permanent solution.
Kudos to skywinder,the first option worked!

For most people the cause of the problem is probably mismatch between Xcode, device version and app target version.
If versions are not a problem for you, most likely is that the device (iPhone/iPad) has been used with another Mac to copy apps to. This happens particularly more with a team environment where an iDevice can be used between team members. Xcode knows some other developer's Mac has connected to this device, it will show up as "Ineligible". But the previous Mac that connected to it, it will show up as normal.
The quickest work around is as shown by joshstaiger among others:
Go to Xcode ->Product->Destination
Select the ineligible device as target. It should work.

Related

Downloaded ios simulator doesn't appear at xcode

I downloaded ios 10.3.1 version in xcode 9.4
But I only can select the ios 11 version I already have.
I rebooted OS and restarted Xcode already. I also can see ios 10 simulator when I select "add additional simulators"
There are ios10, 11 simulator both of them. I don't know how to use ios 10 simulators in xcode that I already downloaded.
Change Deployment Target from iOS 11.x to iOS 10.x
(Xcode shows simulator in a device list with iOS version >= Deployment Target.)
If I understand your problem correctly, changing Deployment target should help. It can be found in General section of settings shown when you first launch the app.
To use that the project compatibility should be lesser. That means the Deployment target in your app should be from iOS 10.
Go to project target settings. Deployment target --> 10.x
As the previous answers didn't help me, I'll describe my solution.
The deployment target doesn't always solve the problem, as well as creating a new scheme. The simulators don't appear automatically.
Press Add Additional Simulators
Choose Simulators tab
Create a new device simulator. Choose Device Type and OS Version whichever available
Your simulator should appear

How do I add older SDKs to my system?

I am running on MacOS Sierra. I downloaded/upgraded my X Code.
Currently, if I run xcodebuild -showsdks it reveals that I have iOS SDK 10.0.
I need to add support for iOS 9.3. How do I do this?
Do I need to download XCode 7.3?
EDIT:
I need iOS SDK 9.3 specifically -- no version after, because of RubyMotion.
iOS 9.3 is still supported with Xcode 8. There shouldn't be any issues.
For anything less than iOS 8, you will have to download Xcode 7 series.
No need for older Xcode. Just open your project, open projects settings, choose your target and change "General -> Deployment Info -> Deployment Target" to needed value (e.g. 9.3)
Update for your edit: yes, to get older SDK version you need to download older Xcode, unfortunately
You can check by downloading simulator of iOS 9 only, Go to xcode preference and download required simulator, check screenshot below:

Xcode 7 with iOS 9 device Error: device unavailable (Could not find a developer disk image)

After updating my iPad to iOS 9 public beta, I am getting an error while trying the run the app in my iPad. When I select the iPad as destination, it says "iPad (Unavailable) or Could not find developer disk image. How can I fix this? Any solution?
If you are using the Xcode 7 GM build version 7A218, the chances are that you accidentally downloaded iOS 9.1 (13B5110e) as opposed to the iOS 9 GM build (13A340). I did the same thing don't worry. They are too close to each other on the downloads page :0
You can check which version you have on your device by simply going to your device Settings > General > About > Version
All you have to do is download the correct iOS 9 GM build and go to iTunes. Click on your device. In the summary tab, OPTION + Right Click "Check for Update" and restore your device by navigating to the iOS 9 GM build finder location. Note by selecting "Check for Update" you will not lose any settings or data on your device. In other words, it is not a restore
However, if you are using Xcode 7.1 build version (7B60) iOS 9.1 is supported
I had the same problem and all I had to do was to update my XCode to 7.1. After that it worked. Your Xcode has to be updated to the latest version.
This is also encountered when trying to use Xcode 6.4 against an iOS 9.0.x device. Here's how you can workaround it and get Xcode 6.4 to recognize your iOS 9.0.x devices:
Download Xcode 7.0.1:
http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/Xcode_7.0.1/Xcode_7.0.1.dmg
Open Xcode_7.0.1.dmg and drag the Xcode.app to your desktop
Right-click, Show package contents, navigate into /Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Copy the "9.0 (13A340)" directory to the existing DeviceSupport directory for your Xcode 6.4 install. For example: ~/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Restart Xcode 6.4 (if it was running), and your device running iOS 9.0.x should now show as a recognized device.
I solve this problem by just simple xcode restart.
Update Xcode. If it not help:
go to
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
If you don't find there your device iOS version, you could try to copy last one and rename it to which one do you need, restart XCode and try to compile, it works for me.
Apple just released the new Xcode 7.1 which support iOS 9.1. Update Your Xcode and everything will be fine.
I have experienced same issue
Could not find Developer Disk Image
1) My Xcode version was 7.0.1 and i updated my iPhone to version 9.2, then upon using Xcode my iPhone was shown in section of unavailable device. Just like in image below:
2) But then i somehow managed to select my iPhone by clicking at
Product -> Destination -> Unavailable Device
3) But that doesn't solved my problem and started showing
Could not find Developer Disk Image
Solution) Then finally i downloaded latest version of Xcode version 9.2 from https://developer.apple.com/downloads/ and everything worked fine for me.
For me the problem was that I just needed to open my phone and click "Trust Computer"
I had XCode 7.0.1 installed + iOS 9.1 (13B143).
XCode had shown me "unsupported device" / "could not find developer disk image" in Devices windows until i updated my XCode to version 7.1. Everything works well now.
I had already update to newest version Xcode (7.0.1) but still can't build on iPod touch 5 in iOS 9.1(13B143).After copy 9.1 (13B137) folder from my colleague to DeviceSupport folder in Xcode, it works! Not sure it would create some side effects.

iOS 9 not supported on Xcode 6.3

I downloaded the iOS 9 beta for the iPhone 5s and wanted to test an application that I have finished but now it says that my iPhone is an ineligible device. Is there a way I can still run apps on my iPhone without downloading the Xcode 7 beta?
You can RUN App on iOS 9 device using Xcode 6, But firstly you need to build your app on XCode 7, after that it will support on XCode 6.
I dont know the reason.
I have checked this on My Mac.
[EDIT]
Steps
Build the project on Xcode 7 while Xcode 6 is opened on the same
project.
Disconnect the device and reconnect it.(Now u can run ur app on XCode6, It may take little time to load device)
When i have checked iOS9 with Xcode6, Bugs are very less.
So i have plan to support iOS9 with XCode6 for quick release. Later i will do for XCode7.
You can build to an iOS 9.0 or 9.1 beta device from Xcode 6.4, not out of the box though.
Download Xcode 7.0 and/or Xcode 7.1 beta dmg, and copy the
Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/9.0 (13A340)
from Xcode 7.0 or:
.../9.1 (13B5110e)
from Xcode 7.1 beta folders to corresponding folder in your Xcode 6.x.
After restarting Xcode iOS 9.0/9.1 devices will no longer be marked an ineligible.
If you installed iOS 9 beta onto your iPhone, then you cannot develop on it without Xcode 7.
However, this is not a completely terrible thing; you can readily have both Xcode 7 and Xcode 6 on the same computer.
(What you cannot do, according to Apple, is revert your iPhone back to iOS 8 - but there are some comments below from people who were able to do it.)
Install the latest XCode. Keep both versions on your Mac. Give Keep Both when installing the new XCode and do not give Replace present XCode during the installation.
Go to application, right click XCode --> show package contents. Copy the latest version from the path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
and copy to the Xcode you are currently working in the same path. Find the screen shots below and start working.
Happy coding.
Don't need build your project at Xcode 7.0, just open and select your device, after that, open your Xcode 6.4 and your device will automatically update the necessary things to build app by Xcode 6.4
Not the easiest or correct way. But if you really have to test once or twice in the device.
In Xcode,
Product -> Archive
Build for Ad-Hoc Distribution
Connect the device
Open Itunes, Select the device,
Select Apps, Drag and drop the .ipa file generated in step 2 to itunes
Press install
App will be installed to the ios9 device.
No, you have to download Xcode 7 beta since tools like the compiler and debugger are part of the IDE.
As stated on Apple Developer Website (here), Xcode 7 Beta has the Swift 2 compiler and SDK for iOS 9. My guess is, your current Xcode doesn't know how to compile for iOS 9 SDK.
However, Apple doesn't specifically mention Xcode 7 as a requirement. It states that OS X Yosemite or later is required.
I don't think you can specifically download an SDK that isn't supported inside Xcode. For example, you can go to Xcode -> Preferences -> Downloads and under Components you may see the iOS 9 Simulator.
If you go to the iOS 9 SDK and download it, it seems to only download the device OS and not the entire SDK.
In conclusion, I believe that the SDK "kit" is integrated with Xcode 7 that would allow you to develop on your iOS 9 Device. Without upgrading, I don't see you being able to do that. I could be wrong though.

"No provisioned iOS devices are available with a compatible iOS version" after upgrade

I had Xcode 6.3 beta and iOS 8.3 beta, I updated to the public final versions and now I cannot run anything, getting this error:
No provisioned iOS devices are available with a compatible iOS
version. Connect an iOS device with a recent enough version of iOS to
run your application or choose an iOS simulator as the destination.
I have tried everything other posts have said with no luck (my iPhone is "used for development", Base SDK = latest iOS (iOS 8.3), Xcode 6.3 (6D570), iOS 8.3 (12F70), Deployment target=8.0, deleted derived data, restarted Xcode, opened up iTunes)
Anyone out there having the same problem?
Did you try this one?
For XCode 6.3, go to Menu: Product > Destination > and select your Device name. Though it says your device is ineligible it will allow you to select the device. That's it!!
If your device version is >= target version, the build will work.
Ask yourself:
Is your iPhone updated to 8.3 release (not beta)?
Is your project's Base SDK lower than your device?
It only happens if your Base SDK is less than your device version or if your deployment target is higher than your device version.
Your app should work if Base SDK >= device >= deployment target.
I had this same issue, restarting everything fixed nothing.
On the general tab of the project, select the app target you want to build. Change your Deployment Target to the most recent one (8.3). You should now be able to build for the device. Select your old deployment target and it will still build for the device.

Resources