一.生成发布证书等
1.生成CSR证书
在钥匙串访问 - 证书助理 - 从证书颁发机构请求证书

需要注意的是要选择存储到磁盘,然后就会生成CSR证书:

这时候钥匙串访问的密钥里面就会看到我们刚创建的test:

2.生成cer证书
在 https://developer.apple.com 里面登录开发正账号,选择添加证书:

在里面按照如下选择:

然后会让我们上传一个CSR文件,就是我们上面存储到磁盘的文件

一直继续,完成后把cer证书下载到本地并安装:

安装后我们会发现这时候钥匙串密钥test里面就会多了一个我们刚下载的证书:

按照提示注册App ID,为了告诉它哪个应用程序可以发布:


3.生成Provisioning Profiles

同第二步生成cer证书一样,因为是发布应用程序,也需要选择App Store:

这里的App ID即是我们之前注册的App ID:

这里的证书选择第二步里面我们生成的cer证书:

下载得到的Provisioning Profiles并安装:

在xcode里面修改相应的设置:
配置中的Provisioning Profiles选择我们上面生成的Provisioning Profiles文件即可

选择Product - Archive:

选择上传到App Store即可
然后在iTunes connect里面填写相应的版本信息 - 构建版本后 - 提交申请审核。。。
总结
1.如果你配置Provisioning Profiles等正确的话,在General里面是没有警告的,如下:

2.如何删除不需要的Provisioning Profiles:

使用命令'rm'删除我们不再需要的Provisioning Profiles
网友评论