Xcode 无法使用选定的设备运行 没有可用的已配置的 iOS 设备

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

Xcode cannot run using the selected device No provisioned iOS devices are available

xcodeprofileprovisioningjailbreak

提问by lusher00

One of my coworkers set me up with a provisioning profile through our corporate profile. I have read through several tutorials and none of them corresponded to the steps he actually took to get it set up. In the end my device was listed under the devices section of the organizer with a green circle next to it (I am guessing that's good?) but when I try to run the application on my device I get the error I mentioned in the subject of this post. I should mention my device is jailbroken running iOS 4.2.6. Is the "jailbrokenness" of my device an issue?

我的一位同事通过我们的公司资料为我设置了一个配置资料。我已经阅读了几个教程,但没有一个与他实际采取的设置步骤相对应。最后我的设备被列在组织者的设备部分下,旁边有一个绿色圆圈(我猜这很好?)但是当我尝试在我的设备上运行应用程序时,我收到了我在主题中提到的错误这个帖子。我应该提到我的设备已越狱运行 iOS 4.2.6。我的设备的“越狱”是一个问题吗?

This is like day one with Xcode and it is pretty overwhelming coming from the Linux command line and Emacs. I don't expect a complete walk through from any of you. But if you can point me to a nice long tutorial showing me how to set this up with the latest version of Xcode I would appreciate it.

这就像使用 Xcode 的第一天,来自 Linux 命令行和 Emacs 的感觉非常令人难以抗拒。我不希望你们中的任何一个人都完全走完。但是,如果您能指点我一个不错的长教程,向我展示如何使用最新版本的 Xcode 进行设置,我将不胜感激。

Screenshot for warning

警告截图

回答by Radim

Check if you can see your device in Organizer and verify iOS version installed on the device with the deployment target for your application. This is very often the case as you won't be able to deploy 4.3 application to 4.2.1 device (for example).

检查您是否可以在 Organizer 中看到您的设备,并使用应用程序的部署目标验证设备上安装的 iOS 版本。这种情况很常见,因为您将无法将 4.3 应用程序部署到 4.2.1 设备(例如)。

回答by David Silva Smith

In Xcode Set the target to project_name | iOS Device

在 Xcode 中将目标设置为 project_name | iOS设备

Then in Xcode From the product menu=>Build For=> Build For Testing

然后在 Xcode 从产品菜单=>Build For=> Build For Testing