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

更新:

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

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


当前回答

我的答案很简单,可能已经列出了,但我没有注意到:我从目标中删除了有问题的应用程序,然后启动Xcode,目标就可用了。是的,我尝试了大多数其他建议,并诉诸于从产品菜单激活目标,但这变得乏味。

其他回答

我的iPad是8.0,但我的部署目标设置为8.1。我在构建设置中更改了部署目标,ipad立即从“不合格”类别中移出。(我在Yosemite和XCode 6.1)

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.

有很多选项(这个问题有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.

尝试了所有可能的更新,Xcode 6.3, iOS 8.3和OSX 10.10.3,但没有得到永久的解决方案。

向skywinder致敬,第一个选择成功了!

我也遇到过类似的问题,对我来说,我已经升级到iOS8,并更改了Xcode项目的名称。对我来说,修复是通过选择管理方案>(+)按钮来创建一个新方案。

执行此操作后,我的设备列表返回。