ios 不合格的设备部分出现在 Xcode 6.xx 中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24039010/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Ineligible Devices section appeared in Xcode 6.x.x
提问by skywinder
After installing Xcode 6my 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.x.x
.
There are so many different reasons causing this problem
所有版本的Xcode 6.x.x
. 导致这个问题的原因有很多
Check this solution listfor more details.
查看此解决方案列表以获取更多详细信息。
采纳答案by skywinder
There is a lot of options (102329 answers for this question!), that can cause this error. And no one is 100% solve this issue. Here is summarise of all solutions.
有很多选项(此问题的10 2329 个答案!),可能会导致此错误。没有人是 100% 解决这个问题的。这是所有解决方案的总结。
First of all:
首先:
0. Update to latest Xcode version
Most of the reasons, that cause this problem fixed in Xcode version 6.3.1
(6D1002 published April 21, 2015)
0.更新到最新的 Xcode 版本
导致此问题的大部分原因已在 Xcode 版本中修复6.3.1
(2015 年 4 月 21 日发布的 6D1002)
List of solutions in order frequency of occurrence:
按发生频率排序的解决方案列表:
The most likely solution::
- In Xcode status go to:
Menu bar
->Product
->Destination
and find your device. It will be listed underIneligible
section - Select your device. After you will be able to build and deploy to device! (thanks, @joshstaiger)
- In Xcode status go to:
最可能的解决方案:
- 在 Xcode 状态中,转到:
Menu bar
->Product
->Destination
并找到您的设备。它将列在Ineligible
部分 - 选择您的设备。之后您将能够构建并部署到设备!(谢谢,@joshstaiger)
- 在 Xcode 状态中,转到:
If it doesn't work:
如果它不起作用:
iOS Deployment Targetshould be
<=
of the version of your device. You find this option inBuild Settings
tab when you click on a target of your project in Xcode.If version is correct - try to restart Mac and iPhone/iPad simultaneously.It resolve this issue in most cases! (thanks, @HoaParis)
Finally if either doesn't work - try to do this magic actions:
- switch
iOS Deployment Target
to 8.1 - restart
Xcode
- switch back to desired version.
- switch
iOS 部署目标应该是
<=
您设备的版本。Build Settings
当您在 Xcode 中单击项目的目标时,您会在选项卡中找到此选项。如果版本正确 - 尝试同时重启 Mac 和 iPhone/iPad。它在大多数情况下解决了这个问题!(谢谢,@HoaParis)
最后,如果两者都不起作用 - 尝试执行以下魔术操作:
- 切换
iOS Deployment Target
到 8.1 - 重新开始
Xcode
- 切换回所需的版本。
- 切换
Other problems, that cause this issue:
导致此问题的其他问题:
Xcode Beta 6.3
does not supportiOS 8.2
(and also 8.1). You won't see your iDevice in deploy target list. UseXcode 6.2
instead ofXcode 6.3 beta
in order to debug with an iDevice iOS 8.2Xcode 6.3
requiresUnity 4.6.4
If you're using an olderUnity
version (e.g.4.6.3
) you'll always get your devices in theIneligible 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 Beta 6.3
不支持iOS 8.2
(还有 8.1)。您不会在部署目标列表中看到您的 iDevice。 使用Xcode 6.2
而不是Xcode 6.3 beta
为了使用 iDevice iOS 8.2 进行调试Xcode 6.3
需要Unity 4.6.4
如果您使用的是旧Unity
版本(例如4.6.3
),您将始终在该Ineligible Devices
部分中找到您的设备(谢谢,@d4rk)它也会出现在更改 Xcode 项目名称的情况下。修复它 - 通过选择创建一个新方案
Manage Schemes > (+) button
。(谢谢,@dale-moore)Xcode 的 Beta 版到发行版升级可能需要将 iOS 或 watchOS 从 Beta 版升级到发行版。例如,当从 Xcode 8 beta 6 切换到 Xcode 8 版本时,watchOS 3 beta 被列为不受支持。
回答by Duyen-Hoa
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. 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).
然后如果不起作用,请尝试重新启动Xcode。有时我们必须重新启动 Mac 和 iPhone/iPad。在重新启动 Xcode 之前看一下下面的更新
更新:在 Yosemite 中,Xcode 6.0.1 不支持 iOS 8.1,如果您想在 iOS 8.1 设备上调试,您必须更新到 Xcode 6.1,否则您可能会遇到与主题中描述的相同的问题
更新 2:Xcode Beta 6.3 不支持 iOS 8.2(以及 8.1 - 感谢 @steveb)。您不会在部署目标列表中看到您的设备。不知道其他版本是否支持。
更新 3.使用 Xcode 6.2 而不是 Xcode 6.3 beta 来调试运行 iOS 8.2 的设备
更新 4 :对于 Xcode 6.3(如果有人使用它,则最终为 6.3 beta :)),如果您遇到此问题,只需转到“产品”>“目的地”以选择您的设备。即使它说您的设备不符合条件,它仍然允许您选择它。如果您的设备版本 >= 目标版本,则构建应该可以工作。在使用 iOS 8.3(或其他 iOS 版本)进行调试时,Xcode 6.3 一定是一个错误(感谢 @einfach)。
- Update 5:Apple released Xcode 6.3.1 that fix the issue of ineligible device. If you have this problem with Xcode 6.3, upgrade to XCode 6.3.1
- 更新 5:Apple 发布了 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)
回答by joshstaiger
Everyone should note that there seems to be a bug in XCode 6.3 (Beta and GM) that is aggravating this problem.
每个人都应该注意到 XCode 6.3(Beta 和 GM)中似乎有一个错误加剧了这个问题。
I have iOS 8.3 installed on my device. Setting the build target to iOS <= 8.3 did not help. Nor did any of the other solutions posted.
我的设备上安装了 iOS 8.3。将构建目标设置为 iOS <= 8.3 没有帮助。也没有发布任何其他解决方案。
What worked for me:
什么对我有用:
Go to the Product Menu > Destination and select your device. It will be listed under "Ineligible", but you will still be able to select it. After doing this, I was able to build and deploy to my device.
转至产品菜单 > 目的地并选择您的设备。它将列在“不合格”下,但您仍然可以选择它。完成此操作后,我能够构建并部署到我的设备。
回答by Dale Moore
I had a similar issue and for me I had upgraded to iOS8 and also changed the name of my Xcode project. The fix for me was to create a new scheme by selecting Manage Schemes > (+) button.
我有一个类似的问题,对我来说我已经升级到 iOS8 并更改了我的 Xcode 项目的名称。我的解决方法是通过选择管理方案> (+) 按钮来创建一个新方案。
After doing this, my list of devices returned.
执行此操作后,我的设备列表返回。
回答by Laurent Crivello
What worked for me is to install XCode 6.1 (compatible with iOS 8.1)
对我有用的是安装 XCode 6.1(与 iOS 8.1 兼容)
回答by dOM
Besides setting iOS Deployment Target to iOS 8.0, also restart your iOS8 iPhone/iPad. This did the trick for me.
除了将 iOS 部署目标设置为 iOS 8.0 外,还要重启你的 iOS8 iPhone/iPad。这对我有用。
回答by ABS
You can try below solutions to run build in your device.
您可以尝试以下解决方案在您的设备中运行构建。
Restart your iOS device (If device is recently updated) and your Xcode.
Make Sure that in build settings "iOS Deployment Target" is <= the version of your iDevice.
重新启动您的 iOS 设备(如果设备最近更新)和您的 Xcode。
确保在构建设置中“iOS 部署目标”是 <= 您的 iDevice 版本。
Otherwise you can goto - Product > Destination, select your device which would be showing as ineligible device.You will be able to select your device and run your build.
否则,您可以转到 - 产品 > 目的地,选择将显示为不合格设备的设备。您将能够选择您的设备并运行您的构建。
I also came across that if you have the iOS 8.4 then your Xcode doesn't have the SDK for iOS 8.4 due to which devices show as ineligible. To solve this issue
我还发现,如果您使用的是 iOS 8.4,那么您的 Xcode 没有适用于 iOS 8.4 的 SDK,因为哪些设备显示为不合格。为了解决这个问题
Download Xcode 6.4
下载 Xcode 6.4
回答by espitia
My solution was that I had recently upgraded my iOS device to 8.3 and Xcode still didn't recognize it. The fix was to simply upgrade Xcode to 6.3 :)
我的解决方案是我最近将我的 iOS 设备升级到 8.3 并且 Xcode 仍然无法识别它。修复是简单地将 Xcode 升级到 6.3 :)
回答by Allen
My iPhone has updated to iOS8.1. My Xcode version is 6.0.1, and my mac os version is 10.10. When I want to run app in my iPhone, there is a section named Ineligible Devices(OS Version)
. Then I update Xcode to 6.1 version, solved problem.
我的 iPhone 已经更新到 iOS8.1。我的 Xcode 版本是 6.0.1,我的 mac os 版本是 10.10。当我想在我的 iPhone 中运行应用程序时,有一个名为Ineligible Devices(OS Version)
. 然后我将 Xcode 更新到 6.1 版本,解决了问题。
Part of Xcode 6.1 release note: Includes SDKS for OS X 10.10 Yosemite, OS X 10.9 Mavericks, and iOS 8.1
.
Xcode 6.1 发行说明的一部分:Includes SDKS for OS X 10.10 Yosemite, OS X 10.9 Mavericks, and iOS 8.1
.
That is, Xcode 6.0.x don't support iOS 8.1.
也就是说,Xcode 6.0.x 不支持 iOS 8.1。
回答by André Moruj?o
After trying the 2 answers above (changing deployment target and restarting my iOS device), what finally fixed it for me was restarting my Mac.
在尝试了上面的 2 个答案(更改部署目标并重新启动我的 iOS 设备)后,最终为我解决的问题是重新启动我的 Mac。