XCode 不显示开发人员配置文件、设备或模拟器选项
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4288204/
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 doesn't show developer profile, devices, or simulator choices
提问by GiGi
My Macbook Pro was damaged and I have to take it to Apple to get a new Hard Drive. The old one would not boot but I was able to recover my projects from it. I opened a project and actually revoked and reset my certificate, etc in the provisioning portal. I also reinstalled my device (iPhone) in the organizer. Everything looks fine in the organizer except nothing shows up under "Developer Profile".
我的 Macbook Pro 损坏了,我必须把它带到 Apple 那里去换一个新的硬盘。旧的无法启动,但我能够从中恢复我的项目。我打开了一个项目,实际上在配置门户中撤销并重置了我的证书等。我还在管理器中重新安装了我的设备 (iPhone)。除了“开发人员配置文件”下没有显示任何内容外,组织者中的一切看起来都很好。
I cleaned all targets also and restarted XCode.
我也清理了所有目标并重新启动了 XCode。
The profiles are there in the target and projects settings but they are grey so I cannot click on them.
I only have ios 4.2 as a choice for SDK's (No simulator and no iPhone even though it's connected and ready in the organizer)
配置文件位于目标和项目设置中,但它们是灰色的,因此我无法单击它们。
我只有 ios 4.2 作为 SDK 的选择(没有模拟器,也没有 iPhone,即使它已连接并在组织者中准备就绪)
回答by GiGi
I was able to get it working by adding the iPhone to the portal.
我能够通过将 iPhone 添加到门户来使其工作。
- Go to organizer in XCode (Window > Organizer)
- Right click on the device (iPhone)
- Select "Add device to provisioning portal"
- 转到 XCode 中的组织者(窗口 > 组织者)
- 右键单击设备(iPhone)
- 选择“将设备添加到配置门户”
It will fix these issues!
将解决这些问题!