ios开发者证书共享多台电脑

来源:互联网 发布:多益网络手游那个好玩 编辑:程序博客网 时间:2024/05/02 02:20

原文地址:http://www.eifr.com/article.php?id=1966


1.启动keychainAccess.app 路径:Application=>Utilities

2.选择login->Certificates,选择自己要到出的证书(如图)


3.右键选择export…会提示设置密码,自己设个就好

4.注意机器可能会提示输入本机管理员密码


5. 在你需要的机器上安装证书(.cer),导入私钥文件(.p12)。安装对应App的provisioning profile。

开发者证书介绍

1.    Certification(证书)

证书是对电脑开发资格的认证,每个开发者帐号有一套,分为两种:
1)    Developer Certification(开发证书)
安装在电脑上提供权限:开发人员通过设备进行真机测试。可以生成副本供多台电脑安装;
2)    Distribution Certification(发布证书)
安装在电脑上提供发布iOS程序的权限:开发人员可以制做测试版和发布版的程序。

2.    Provisioning Profile(授权文件)

授权文件是对设备如iPod Touch、iPad、iPhone的授权,文件内记录的是设备的UDID和程序的App Id,即使被授权的设备可以安装或调试Bundle identifier与授权文件中记录的App Id对应的程序。
1)    Developer Provisioning Profile(开发授权文件)
2)    Distribution Provisioning Profile(发布授权文件)

(方便的方法,Windows->Organizer, LIBRARY->Provisioning Profile 点击refresh按钮 导入provisioning profile)


文章2


在创建开发供应配置文件的时候,如果想在多台mac机器上共用同一个证书文件,首先就是按照下面说的:
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操作,否则便会出错。(方便的方法,点击refresh按钮 导入provisioning profile)


原创粉丝点击