本文翻译自:Ineligible Devices section appeared in Xcode 6.x.x
After installing Xcode 6 my devices moved to greyed-out section Ineligible Devices
and I can't select them as deploy target: 安装Xcode 6后,我的设备移动到灰色部分Ineligible Devices
,我无法选择它们作为部署目标:
Update: 更新:
This error occurs in all versions of Xcode 6.xx
. Xcode 6.xx
所有版本中都会出现此错误。 There are so many different reasons causing this problem 造成这个问题的原因有很多种
Check this solution list for more details. 请查看此解决方案列表以获取更多详
#1楼
参考:https://stackoom.com/question/1crdy/不合格的设备部分出现在Xcode-x-x中
#2楼
With the release of Xcode 6.3.1, check first the Update 5 随着Xcode 6.3.1的发布,首先检查Update 5
- Verify that "iOS Deployment Target" is <= the version of your iDevice. 验证“iOS部署目标”是否=您的iDevice版本。
You find this option in "Build Settings" tab when you click on a target of your project in Xcode. 当您在Xcode中单击项目的目标时,可以在“构建设置”选项卡中找到此选项。
Then if does not work, try to restart Xcode. 然后,如果不起作用,请尝试重新启动Xcode。 Sometimes we have to restart the Mac and iPhone/iPad. 有时我们必须重启Mac和iPhone / iPad。 Take a look at the Updates below before restarting Xcode 在重新启动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 更新:在Yosemite中,Xcode 6.0.1不支持iOS 8.1,如果要在iOS 8.1设备上调试,则必须更新到Xcode 6.1,否则您可能会遇到与主题中描述的问题相同的问题
Update 2: Xcode Beta 6.3 does not support iOS 8.2 (and also 8.1 - thanks @steveb). 更新2: Xcode Beta 6.3不支持iOS 8.2(以及8.1 - 感谢@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 更新3.使用Xcode 6.2代替Xcode 6.3 beta,以便使用运行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. 更新4: 对于Xcode 6.3 (如果有人使用它,最终6.3测试版:)),如果你有这个问题,只需转到产品>目的地选择你的设备。 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). 在iOS 8.3(或其他iOS版本)的调试中,它必须是Xcode 6.3的一个错误(感谢@einfach)。
- Update 5: Apple released Xcode 6.3.1 that fix the issue of ineligible device. 更新5: Apple发布了Xcode 6.3.1,解决了不合格设备的问题。 If you have this problem with Xcode 6.3, upgrade to XCode 6.3.1 如果Xcode 6.3出现此问题,请升级到XCode 6.3.1
From Release Notes (Xcode 6.3.1): 从发行说明(Xcode 6.3.1):
Fixed: Devices previously listed as "ineligible for running” erroneously are listed correctly. (20121178) 修复:错误地列出了以前列为“不符合运行条件”的设备。(20121178)
#3楼
Besides setting iOS Deployment Target to iOS 8.0, also restart your iOS8 iPhone/iPad . 除了将iOS部署目标设置为iOS 8.0之外,还要重新启动iOS8 iPhone / iPad 。 This did the trick for me. 这对我有用。
#4楼
在尝试上面的2个答案(更改部署目标并重新启动我的iOS设备)后,最终修复它的是重新启动我的Mac。
#5楼
I changed my deployment target to 7.1 the same as my iphone, and now I can run swift programs on it. 我将部署目标更改为与iphone相同的7.1,现在我可以在其上运行swift程序。 It was on 8.0 and showed up as ineligible. 它是在8.0,并显示为不合格。
#6楼
I simply restarted my Mac and my iPhone 6 and the problem was solved. 我只是重新启动了我的Mac和iPhone 6,问题解决了。 I never had to change my deployment target. 我从来没有必要改变我的部署目标。