Xcode Organizer:“您的团队没有可为其生成配置文件的设备。”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8774379/
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
Xcode Organizer: "Your team has no devices for which to generate a provisioning profile."
提问by Francisco Ryan Tolmasky I
I am experiencing a strange error in Xcode's Organizer. I have two team members and whenever we log in we receive the following message:
我在 Xcode 的管理器中遇到一个奇怪的错误。我有两个团队成员,每当我们登录时,都会收到以下消息:
Your team has no devices for which to generate a provisioning profile. Please connect a device to use for development, or manually add a Device ID using the Provisioning Portal. https://developer.apple.com/devcenter/ios
您的团队没有要为其生成配置文件的设备。请连接用于开发的设备,或使用 Provisioning Portal 手动添加设备 ID。 https://developer.apple.com/devcenter/ios
If I go there I can clearly see two devices, and two certificates for the two developers. In fact, I can even build and install on my device fine with the team provisioning profile, but for some reason I still see this error every time Organizer chooses to refresh. Can someone explain this?
如果我去那里,我可以清楚地看到两个设备,以及两个开发人员的两个证书。事实上,我什至可以使用团队配置文件在我的设备上正常构建和安装,但出于某种原因,每次 Organizer 选择刷新时,我仍然会看到此错误。有人可以解释一下吗?
回答by Chris Livdahl
Here's a great answer to this issue at the bottom of this forum thread: https://devforums.apple.com/message/637101#637101
这是本论坛主题底部对这个问题的一个很好的回答:https: //devforums.apple.com/message/637101#637101
The short answer is, you get the above error if you haven't added your Mac to the Portal.
简短的回答是,如果您尚未将 Mac 添加到门户,则会出现上述错误。
"After going to the 'My Mac' device in the sidebar, and clicking 'Add to Portal', I no longer get this error."
“转到侧栏中的“我的 Mac”设备并单击“添加到门户”后,我不再收到此错误。”
This solution worked for me as well, since I bought a new Retina MacBook Pro.
这个解决方案也适用于我,因为我买了一台新的 Retina MacBook Pro。
回答by deepwinter
Restarting XCode fixed precisely this problem for me. On restart, XCode downloaded the 4.1 firmware correctly and installed it.
重新启动 XCode 正好为我解决了这个问题。重新启动时,XCode 正确下载并安装了 4.1 固件。
回答by Gerard
I was using an iPhone 3GS to try to test an application on my Mac Pro. I kept getting the problem even after restarting Xcode 4.3.2 and removing provisioning profiles. I tried under Xcode 4.4 with Mountain Lion on a MacBook Air and Xcode complained that "Xcode cannot run using the selected device. Choose a destination with a supported architecture in order to run on this device." I added armv6 to the projects "Architectures" and was able to start debugging on my device. The iPhone 3GS was running iOS 4.2.1. I'm not sure if this is unrelated to the problem but this is what I did on my Mac Pro after I saw that things were okay on my MacBook Air.
我使用 iPhone 3GS 尝试在 Mac Pro 上测试应用程序。即使在重新启动 Xcode 4.3.2 并删除配置文件后,我仍然遇到问题。我在 MacBook Air 上使用 Mountain Lion 在 Xcode 4.4 下尝试,Xcode 抱怨“Xcode 无法使用所选设备运行。选择一个具有支持架构的目的地,以便在此设备上运行。” 我将 armv6 添加到“架构”项目中,并且能够在我的设备上开始调试。iPhone 3GS 运行的是 iOS 4.2.1。我不确定这是否与问题无关,但这是我在 Mac Pro 上看到我的 MacBook Air 一切正常后所做的。
回答by clozach
I think the "error" means:
我认为“错误”意味着:
Xcode can't automatically provision this device because it's already listed in a provisioning profile.
Xcode 无法自动配置此设备,因为它已在配置文件中列出。
In other words, something did fail—automaticprovisioning—but it doesn't matter because manualprovisioning was the source of the failure.
换句话说,某些事情确实失败了——自动配置——但这并不重要,因为手动配置是失败的根源。
So just click OK and move along. There's nothing to see here.
所以只需单击“确定”并继续。这里没什么可看的。
回答by Georg Tuparev
We had the same problem. Deleting all certificates, removing all devices from the provisioning portal and registering them again (manually or with Xcode) fixed the problem.
我们遇到了同样的问题。删除所有证书、从配置门户中删除所有设备并重新注册(手动或使用 Xcode)解决了该问题。