安装Xcode 6后,我的设备移动到灰色部分不符合条件的设备,我不能选择它们作为部署目标:

更新:

此错误发生在所有版本的Xcode 6.x.x中。 造成这个问题的原因有很多

查看这个解决方案列表以获得更多详细信息。


当前回答

我只是重启了我的Mac和iPhone 6,问题就解决了。我从不需要改变我的部署目标。

其他回答

有很多选项(这个问题有10 23 29个答案!),都可能导致这个错误。没有人能100%解决这个问题。以下是所有解决方案的总结。

首先:

0. 更新到最新的Xcode版本 导致此问题的大部分原因在Xcode 6.3.1版本中修复(6D1002于2015年4月21日发布)

按出现频率排序的解决方案列表:

最有可能的解决方案是: 在Xcode状态下,进入:菜单栏->产品->目的地,找到你的设备。它将被列在不合格部分 选择您的设备。之后你就可以构建和部署到设备了!(谢谢,@joshstaiger)


如果不起作用:

iOS部署目标应该是设备版本的<=。 当你在Xcode中点击项目的目标时,你会在Build Settings选项卡中找到这个选项。 如果版本正确-尝试同时重启Mac和iPhone/iPad。它在大多数情况下解决了这个问题!(谢谢,@HoaParis) 最后,如果这两种方法都不奏效,试试下面这个神奇的动作: 将iOS部署目标切换到8.1 重启Xcode 切换回所需的版本。


其他导致这个问题的问题:

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.

改变你的部署目标并不是解决这个问题的好方法(它会改变你在应用商店中支持的iOS版本)。

我所做的就是重新启动Xcode,它就修复了。

我的iPhone已经更新到iOS8.1。我的Xcode版本是6.0.1,我的mac os版本是10.10。当我想在我的iPhone上运行应用程序时,有一个名为“不合格设备(操作系统版本)”的部分。然后我将Xcode更新到6.1版本,解决了问题。

部分Xcode 6.1发布说明:包括OS X 10.10 Yosemite, OS X 10.9 Mavericks和iOS 8.1的sdk。

也就是Xcode 6.0。x不支持iOS 8.1。

我把部署目标改成了7.1,和我的iphone一样,现在我可以在上面运行swift程序了。它在8.0上显示为不合格。

随着Xcode 6.3.1的发布,首先检查更新5

验证“iOS部署目标”是<=您的设备的版本。

当你在Xcode中点击项目的目标时,你会在“Build Settings”选项卡中找到这个选项。

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).

更新5:苹果发布了Xcode 6.3.1,修复了不合格设备的问题。如果你在Xcode 6.3中遇到这个问题,请升级到Xcode 6.3.1

发布说明(Xcode 6.3.1):

固定:设备之前被列为“不符合运行条件” 错误的被正确列出。(20121178)