iOS打包流程简单分为如下几个步骤,下面小编为大家一一介绍下:
-
步骤一:自己mac上使用“钥匙串访问”创建CSR文件
Launchpad -》其他 -》钥匙串访问 -》钥匙串访问工具栏 -》 证书助理 -》 从证书颁发机构请求证书 -》 填写CSR文件信息并存储到磁盘固定位置



-
步骤二:生成发布证书
打开https://developer.apple.com网址 -》 Account -》左侧或中间的Certificates,Identifiers,Profiles -》 默认进入Certificates列表页面 -》 点击Certificates右侧的“+” -》 Create a New Certificate页面的Software选择“Apple Distribution”,Services中根据需要进行选择,选择后点击右上角的“Continue” -》Choose步骤一生成的CRS文件 -》点击“Continue”生成证书 -》Download 证书 -》“钥匙串访问中”点击“证书”,选择刚刚生成的证书右键“导出”p12文件
Account账号需要是已付费的开发者账号,如果没有,点击Account后按照页面提示进行注册。
开发者账号的四种类型:个人、公司、企业、高校,每年缴费分别为$99、$99、$299、免费。
从2020.06.30 开始,上传到App Store上的APP必须是iOS 13 SDK或以上,XCode 11或以上
一个开发者账号可以生成不超过3个生产证书,不超过2个开发证书,共同开发时需要生成p12文件供其他同事使用;可以在Certificates列表页面点击某个之前创建的现在不用的证书,进入该证书详情后可以进行Revoke(删除)操作







-
步骤三:绑定App ID
打开https://developer.apple.com网址 -》 Account -》左侧或中间的Certificates,Identifiers,Profiles -》 点击左侧Identifiers进入Identifiers列表页面 -》 点击Identifiers右侧的“+” -》 Register an App ID 页面填写“Description”和“Bundle”,点击“Continue”
Description:该App ID的简单描述,按要求用英文即可。
Bundle:同XCode中的Bundle保持一致,按要求用英文即可。


-
步骤四:生成Profile描述文件
打开https://developer.apple.com网址 -》 Account -》左侧或中间的Certificates,Identifiers,Profiles -》 点击左侧Profiles进入Profiles列表页面 -》 点击Profiles右侧的“+” -》 Register a New Provisioning Profile 页面选择“Distribution”中的App Store,点击“Continue”
Distribution:发布到App Store中需要用到。
Development:开发时用到。




网友评论