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

更新:

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

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


当前回答

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.

其他回答

我可以确认答案是把Xcode升级到6.1。如果你使用的是Xcode 6.0。X您将无法选择运行8.1的设备。您的部署目标和操作系统版本应该与此无关。

如果你的操作系统版本大于10.9.4,我会推荐这样做。首先,解除所有设备。下载Xcode 6.1。打开新版本的Xcode后,连接你的设备。你应该可以出发了。

另一件好事是查看发行说明。它易于阅读,并给你一个仍然需要修复的大致概念。

升级XCode以确保它支持当前设备上的iOS版本。

(就我而言,我的手机使用的是iOS 9.1.x)但XCode版本是7,支持iOS 9.0设备)

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.

如果你有机会在“不合格”的设备上使用Xcode运行任何项目,尝试它,然后重新连接设备到你的Mac(不重启Xcode/Mac)。 对我来说,在这样做之后,“不符合条件的设备”部分消失了,我的设备恢复到正常状态。 希望它能对某些人有所帮助。

请确保“设置”中的部署目标版本小于或等于iPhone版本

如果部署目标是7.1,但iPhone是7.0.3

您将看到错误消息