xcode 将密钥和证书复制到另一台 Mac 以进行 iPhone 开发
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10404931/
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
Copying keys and certificates to another one Mac for iPhone development
提问by Crashalot
We bought a new Mac and would like to migrate the certificates and private keys from the old machine to the new machine. The old machine contains keys and certificates for six iPhone apps.
我们买了一台新 Mac,想把旧机器上的证书和私钥迁移到新机器上。旧机器包含六个 iPhone 应用程序的密钥和证书。
We followed the instructions outlined in this SO post, which is also echoed in other SO posts on the topic.
我们遵循了这篇SO post 中概述的说明,这也在有关该主题的其他 SO 帖子中得到了回应。
Everything seems to work in that we can upload a new binary to the App Store.
似乎一切正常,我们可以将新的二进制文件上传到 App Store。
But when we look in Keychain Access, only the key/certificate pairing for one app appears.
但是当我们查看 Keychain Access 时,只会出现一个应用程序的密钥/证书配对。
Do we need to worry about this? Or is there a convenient way to export/import private keys and certificates in mass (as opposed to one by one)?
我们需要担心这个吗?或者是否有一种方便的方法可以批量导出/导入私钥和证书(而不是一个一个)?
We're on Xcode 4.2.
我们在 Xcode 4.2 上。
Thanks!
谢谢!
采纳答案by Suhail Patel
You should be able to export all your provisioning profiles with all the keys (Public and Private) with just one export
您应该能够通过一次导出使用所有密钥(公共和私有)导出所有配置文件
In the Organiser under the Devices tab, you need to select Developer Identity and export that to a file and give it a password. Move that file to the new system and import it into Xcode and your full identity will be set up
在 Devices 选项卡下的 Organizer 中,您需要选择 Developer Identity 并将其导出到文件并为其提供密码。将该文件移动到新系统并将其导入 Xcode,您的完整身份将被设置
回答by Jason
Import/Export works differently in Xcode 5+. This Apple Developer guideshows you how to do it.
导入/导出在 Xcode 5+ 中的工作方式不同。此 Apple 开发人员指南向您展示了如何操作。
Your account is shown under Xcode→ Preferences→ Accounts, and can be exported by clicking the gear icon () in the lower-left.
您的帐户显示在Xcode→ Preferences→ Accounts 下,可以通过单击左下角的齿轮图标 ( )导出。
回答by Abhilash Reddy Kallepu
Import by selecting the private key from the keys tab. This prompts a password and after the password it saves in .p12
format and you can install in all the systems.
通过从密钥选项卡中选择私钥来导入。这会提示输入密码,并在密码后以.p12
格式保存,您可以在所有系统中安装。