多台Mac电脑使用同一个苹果开发者帐号进行调试

13 篇文章 0 订阅

     最简单的方式是直接从已安装好的机器上导出私有密钥的,具体方法如下:

  首先就是按照下面说的:

  When you request a certificate from the iPhone Provisioning Portal, a public/private key pair is generated. The public key is included in your certificate. The private key is stored in your keychain. With these items, Xcode code-signs the applications you build with it. If you need to use another computer to develop iOS applications, you must transfer these digital-identification items to the other computer. You can do this in the Xcode Organizer.

  To export your digital-identification items to a secure file, follow these steps:

  Open the Xcode Organizer.

  In the IPHONE DEVELOPMENT group, select Developer Profile.

  Click Export Developer Profile.

  Name the file, select a location for it, enter a password to secure the file, and click Save.

  Now, when you need to develop iOS applications on another computer, import your digital-identification items into it by performing these steps:

  Copy the developer-profile archive to the second computer.

  On the second computer, launch Xcode.

  Open the Organizer.

  In the IPHONE DEVELOPMENT group, select Developer Profile.

  Click Import Developer Profile.

  Locate the archive, enter the password used to secure it, and click Open.

  关键的一点就是不是直接从keychain里导出.cer文件,而是利用Xcode的organizer的IPHONE DEVELOPMENT ---》Developer Profile里自带的Export和Import操作

上述方法解决了一个很关键的问题:私有密钥安装问题,如果还有什么证书没装的可以参考下文共装4个文件即可。

保存你的私钥,转移到其它系统

将你的私钥安全的保存,如果你需要在多台电脑上开发或者重装你的操作系统的。如果没有私钥,那么将无法再Xcode签名或者在apple设备上测试应用。当一个CSR被生成,Keychain Access应用在你的登录keychain里面生成一个私钥,这个私钥是和你的用户账户关联的,如果在系统重装的时候是无法重新生成的。如果你希望在多个系统上做开发或者测试,那么你需要在所有你工作的系统之上导入你的私钥。

1、 导出私钥和数字证书是为安全保存和能够在多台电脑上进行工作。打开Keychain Access应用选择’KEY’分类。

2、 右键点击和你iphone开发证书关联的私钥,并在弹出菜单中选择导出选项。

3、 使用(.p12)保存包含了你个人信息的钥匙。

4、 你将会被提示创建一个密码。

现在可以通过.p12文件在不同系统之间传输。双击.p12在其他系统上进行安装。输入你在第四步创建的密码即可在安装的mac机器上进行调试了。


--------------------------------------------华丽的分割线------------------------------------------

   生成一个ios(测试)证书时需要从本电脑生成一个请求证书,导致,生成成功后,不能多台电脑共用一个证书。

   以下是具体的步骤:

1、找到生成证书得电脑,选择 钥匙串,点击[种类]中的密钥,如图



2、选中密钥,在右边得详情里面,找到要目标密钥。如图:



右击,导出,导出文件为  ***.p12   

将***.p12 发给其他用户,双击就可到入该用户的钥匙串中,另外一台电脑就能使用该证书了!



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值