iOS 开发者计划证书转移
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17917160/
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
iOS developer program certificate transfer
提问by Max
I have some problems with my developer certificate and profile. I have certificate of developer program on my office Mac. I want to develop and test the app on my device at home, so I have added my device and generated provision profile from office Mac. Download and install *.cer and provision on my home Mac, but I saw the error:
我的开发人员证书和个人资料存在一些问题。我的办公室 Mac 上有开发人员程序证书。我想在家里的设备上开发和测试应用程序,所以我添加了我的设备并从办公室 Mac 生成了配置文件。在我的家用 Mac 上下载并安装 *.cer 和配置,但我看到了错误:
The identity 'iPhone Developer' doesn't match any valid, non-expired certificate/private key pair in your keychains
How to transfer keys from office Mac to my home Mac?
如何将密钥从办公室 Mac 传输到我的家用 Mac?
回答by Nirav Bhatt
- Open your keychain program at workplace.
- Select My certificates section. Select entries listed as iOS Developer certificate, iOS Distribution Certificate etc. For the sake of simplicity select everything that you find related to your membership.
- Select Export.
- It will ask you enter choice of password. Enter it.
- It will export p12 file. Transfer this file to your home mac.
- At home mac, import this p12 file into your Keychain Program.
- Start XCode and try to build again using the provisioning profile.
- If the above does not work, try the entire thing with Keys section of your Keychain program.
- 在工作场所打开您的钥匙串程序。
- 选择我的证书部分。选择列为 iOS 开发者证书、iOS 分发证书等的条目。为简单起见,选择与您的会员资格相关的所有内容。
- 选择导出。
- 它会要求您输入密码选择。输入它。
- 它将导出 p12 文件。将此文件传输到您的家用 Mac。
- 在家里的 mac 上,将此 p12 文件导入到您的钥匙串程序中。
- 启动 XCode 并尝试使用配置文件再次构建。
- 如果上述方法不起作用,请使用钥匙串程序的 Keys 部分尝试整个过程。
回答by Jason
I think you need to export your office machine's developer profile, and then import it on your home machine. In xCode 4.x this was done from the Team in Organizer, and in xCode 5+ it is under accounts:
我认为您需要导出您的办公机器的开发人员配置文件,然后将其导入您的家用机器上。在 xCode 4.x 中,这是由组织者中的团队完成的,而在 xCode 5+ 中,它位于帐户下:
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 logixologist
I used to get into similar issues I like to call CERT-Hell. I assume you have permissions to actually do what you are attempting. The best thing I have ever done was the use the built in processing within Xcode in the Organizer under Window. You never have to worry about actually importing certs, etc.
我曾经遇到过类似的问题,我喜欢称之为 CERT-Hell。我假设您有权实际执行您正在尝试的操作。我做过的最好的事情是在 Xcode 中的 Window 下的 Organizer 中使用内置处理。您永远不必担心实际导入证书等。
You will have to fanagle with it a little since I dont know what you have done already but the jist of it is that you can let XCode manage all your certificates for provisioning. Hope this helps you.
由于我不知道您已经做了什么,因此您将不得不稍微使用它,但其要点是您可以让 XCode 管理您的所有证书以进行配置。希望这对你有帮助。