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

更新:

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

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


当前回答

我的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。

其他回答

您可以尝试以下解决方案在您的设备中运行构建。

重启你的iOS设备(如果设备最近更新过)和Xcode。 确保在构建设置中“iOS部署目标”是<=你的设备的版本。

否则,您可以去-产品>目的地,选择您的设备将显示为不合格的设备。您将能够选择您的设备并运行构建。

我还发现,如果你有iOS 8.4,那么你的Xcode没有iOS 8.4的SDK,因为这些设备显示为不合格。为了解决这个问题

下载Xcode 6.4

我发现以下方法很有用:

连接到新设备,进入itunes,确保你同步了 设备(您可能有证书问题) 遵循NateJC的建议(即切换设备,然后再切换回来)

在我的情况下,我必须重新连接设备,当它要求按“信任这台计算机”,然后我的设备出现在xCode中再次可用

每个人都应该注意到,在XCode 6.3 (Beta版和通用版)中似乎有一个bug加剧了这个问题。

我的设备上安装了iOS 8.3。将构建目标设置为iOS <= 8.3并没有帮助。其他的解决方案也没有发布。

对我有用的是:

进入产品菜单>目的地并选择您的设备。它将被列在“不合格”下,但您仍然可以选择它。在此之后,我能够构建并部署到我的设备上。

随着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)