iOS:创建/下载/应用Profile

说明:

Profile是配置文件,将证书、App ID关联在一起,上架App Store需要。

创建证书:https://blog.****.net/a526001650a/article/details/104423593

创建App ID:https://blog.****.net/a526001650a/article/details/104428582

一、创建Profile:

1.打开Profiles页面,左侧选择”Profiles”,中间Profiles列表就是已创建的Profiles,点击”+”,进入Profiles选择页面,如图所示:

地址:https://developer.apple.com/account/resources/profiles/list

iOS:创建/下载/应用Profile

2.在Profile类别选择页面,选择”Distribution”-“App Store”,点击”Continue”,进入App ID选择页,如图所示:

iOS:创建/下载/应用Profile

3.在App ID选择页中,点击”App ID:”下接框箭头,在下拉列表中选择自已的App ID,点击”Continue”进入Certificates选择页,如图所示:

iOS:创建/下载/应用Profile

4.在Certificates选择页中,选择”Select Certificates”列表中自已的证书,点击”Continue”进入Profile名称输入页,如图所示:

iOS:创建/下载/应用Profile

5.在Profile名称输入页,在”Provisioning Profile Name”中输入名称,点击”Generate”生成Profile,如图所示:

iOS:创建/下载/应用Profile

二、下载Profile(扩展名为.mobileprovision):

1.在创建完成后,会跳到下载页,点”Download”按钮下载。

2.回到Profiles列表,鼠标移到指定行Profile,点击出现的”Download”按钮下载,如图所示。

iOS:创建/下载/应用Profile

三、XCode工程导入Profile配置:

1.选中工程,在中间选择”TARGETS”中的工程名,打开”General”选项卡,滚动到”Signing”,取消勾选”Automatically manage signing”,如图所示:

iOS:创建/下载/应用Profile

2.在显示出的Signing(Release)中,点击”Provisioning Profile”下拉箭头,选择”Import Profile”,如图所示:

iOS:创建/下载/应用Profile

3.在弹出的文件选择框中选择自已的Profile文件,如图所示:

iOS:创建/下载/应用Profile