XCode 错误:没有配备兼容 iOS 版本的 iOS 设备可用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17434727/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 03:33:59  来源:igfitidea点击:

XCode Error: No provisioned iOS devices are available with a compatible iOS version

iosxcodeprovisioning

提问by donalbain

I know this question has been asked quite a bit before, but none of the known causes seem to be the case in my situation.

我知道这个问题以前被问过很多次,但在我的情况下似乎没有一个已知的原因。

  • The device is provisioned & connected. I can see it in iTunes as well as the XCode organizer and it's marked 'green'.

  • It is also set up for development and has the provisioning profile used for development installed. The profile is also present and valid in the XCode organizer.

  • The project & target 'iOS Deployment Target' is definitely below that of the device (deployment target iOS 3.0, device is 6.0).

  • The device is added to the development provisioning profile in the apple dev site.

  • 设备已配置和连接。我可以在 iTunes 和 XCode 管理器中看到它,它被标记为“绿色”。

  • 它还为开发而设置,并安装了用于开发的配置文件。该配置文件也在 XCode 管理器中存在且有效。

  • 项目和目标“iOS 部署目标”肯定低于设备(部署目标 iOS 3.0,设备为 6.0)。

  • 该设备已添加到 Apple 开发站点的开发配置文件中。

Any idea what else could be causing this problem? I should add that my XCode version is 4.6.3.

知道还有什么可能导致这个问题吗?我应该补充一点,我的 XCode 版本是 4.6.3。

采纳答案by donalbain

Answering my own question here. Wasted a bunch of time on this, but sometimes it's the simplest thing that kills you. It turns out someone on my team had changed the target's supported Device (under Targets -> APP_TARGET -> Summary -> Devices in the project settings) to 'iPad', when the app was supposed to be 'Universal' all along, and I was trying to deploy to an iPhone.

在这里回答我自己的问题。在这上面浪费了很多时间,但有时它是杀死你的最简单的事情。事实证明,我团队中的某个人已将目标支持的设备(在项目设置中的目标 -> APP_TARGET -> 摘要 -> 设备下)更改为“iPad”,当时该应用程序一直应该是“通用的”,而我试图部署到 iPhone。