新电脑,旧配置文件,但 iPhone 不再工作
像往常一样,配置文件问题。我会保持简短。
我得到了一台新笔记本电脑。安装了 XCode。从我的旧机器导出配置文件并将其导入到新机器。我的 iPhone 在设备列表中显示正常,已连接,附加到正确的配置文件。
但是当我尝试使用该设备进行调试时,它告诉我
No provisioned iOS devices are available. Connect an iOS device or choose an iOS simulator as the destination.
我已经尝试过刷新、重新添加、重新创建。它不感兴趣。
我有什么遗漏的吗?我需要创建新证书吗?我是否需要从头开始重新创建一个全新的配置配置文件?
感谢您能给我的任何帮助、建议或情感支持。
邓克们
Provisioning Profile problems, as usual. I'll keep it brief.
I got a new laptop. Installed XCode. Exported the provisioning profile from my old machine and imported it to the new one. My iPhone shows up fine in the devices list, connected, attached to the correct profile.
But when I try and debug using the device, it tell me
No provisioned iOS devices are available. Connect an iOS device or choose an iOS simulator as the destination.
I've tried refreshing, re-adding, re-creating. Its not interested.
Is there something I'm missing. Do I need to create new certificates? Do I need to re-create a whole new profisioning profile from scratch.
Thanks for any help or advice or emotional support you can give me.
the duncs
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须从旧计算机上的钥匙串应用程序导出证书并将其导入新计算机的钥匙串中。您可以从配置中心重新下载您的配置配置文件,但您的证书不能;他们必须被迁移。
编辑:我可能把它搞混了。我认为您必须导出/导入的是您的私钥。
You have to export your certificates from the keychain app on the old machine and import them into the new machine's keychain. You can re-download your provisioning profiles from the provisioning center, but your certificates can't; they must be migrated.
EDIT: I might have muddled it up. I think it's your private keys that you have to export/import.
所以,事实证明我的密钥、证书或配置文件没有任何问题。无论如何,如果其他人也遇到同样的问题:
我的 iPhone 版本是 4.2,但 iOS 设备的默认设置是 4.3。
通过将 iOS 开发目标设置为 4.2 来修复此问题。
我确信这是一个男生的错误,但绝对不是一个明显需要解决的错误。出现类似“找不到构建版本 4.3 的 iOS 设备”的错误。但无论如何。感谢大家的帮助和时间。
So, turns out there was nothing wrong with my keys or my certificates or provisioning profiles. For what its worth, if anyone else has the same problem:
My iPhone version was 4.2, but the default setting for the iOS device to build to was 4.3.
Fixed it by setting the iOS development target to 4.2.
School boy error I'm sure, but definitely not an obvious one to work out. An error along the lines of 'no iOS device of build version 4.3 could be found'. But anyway. Thanks to everyone for their help and time.