xcode 5 cert and provision profile issue

来源:互联网 发布:长沙网络危机公关公司 编辑:程序博客网 时间:2024/04/28 06:05

在xcode 5 "organizer"里provisioning profile的管理界面已经不再有, 而是改为在menu "Xcode > Preference... > Accounts tab" 里进行管理, 还有一点不同的是你需要在Accounts tab里添加Apple ID with password.


xcode 5里如何apple IDadmindistribution cert and provision profiledeveloper生成ipa,同时又避免让developer知道apple ID的password?

 

准备工作:

1.  在apple developer online center里必须先创建好该app对应的distribution provisioning profile

 

注意:不需要创建developmentprovision profile,因为xcode 5有一个新特性,当你从xcode5里account setting里添加你的apple ID后,它就会自动为每一个App ID创建一个development provisioningprofile (Managed by Xcode),每一个provision profile都会自动把所有的cert and device都包进去

 

2.  在admin的电脑里的keychain里必须有

a.  distributioncert with private key

b.  (果要把dev cert给developer的话)development certwith private key


 

 

Admin需要交给developer的东东只有一个:Developerprofile file (extension is .developerprofile),该file里包含了dev/distribution cert with private key and provisioning profiles

 

Admin如何使用xcode5的accountsetting来导出交给developer的东东

1.  Run xcode5, select menu “Xcode > Preference…”, select “Accounts” tab

2.  Click“+”, select “Add apple ID…”, input apple id and pwd. 添加成功之后,出现下列画面


3.  Click“View Details…” button, 出现下列画面


在这个画面必须保证下面2个方面

1)  在”Signing Identities”列表里就是dev/distribution cert,必须是valid的!

2)  在”Provisioning Profiles”列表里必须能看到你的app的distribution provisioning profile


4.  Highlight你想要导出的apple Id, click “齿轮”icon and select “export accounts…”,input export file name and password, click “save”, it will generate developer profile file with extension“.developerprofile”,将该文件交给developer即可


 

Developer如何把admin所给的东东导入?

1.  select menu “Xcode > Preference…”, select“Accounts” tab

2.  click “齿轮” icon, select “Import accounts…”, select “.developerprofile” file



=====================================================================================

另:如何导出导入development/distribution certificate with private key?

>> 导出

option 1: 可以通过在keychain里right click the cert and select “Export xxxx”来把p12 file导出



option 2: 在xcode的account setting里,highlight apple ID, click "view details...", Highlight你要导出的cert,然后点击“齿轮”icon,选择“Export”,就会导出.p12 file




========================

iOS project里如何设置sign identities and provisioning profile? 

1. 先在Target的"General" tab里,设置bundle identifier和Team (team就是apple id)。

注意:有可能会找不到provisioning profile (如下图),step 2会fix it.


2. 在both Project and Target里的build settings里对下列options进行设置,先设置"Provisioning Profile",再设置"Code Signing Identity" (即cert)

0 0
原创粉丝点击