一.生成发布证书
1.打开苹果开发者中心:https://developer.apple.com 点击Account 输入账号和密码
2.点击Certificates,Identifiers & Profiles

3.进入以下页面,选择iOS,tvOS, watchOS,选择All ,点击右上角+号,新添加证书

4.APP上传选择生产证书Production,选择App Store and Ad Hoc (Development用于开发测试用) ,点击continue , 再continue
PS:一个开发者账号只能创建(1-2个开发(测试)证书,2-3个生产(发布)证书)


5.上传CSR文件去获取证书(CSR文件需要我们到本机钥匙串里去创建)
Launchpad-->其他-->钥匙串访问,弹出如下界面:

点击工具栏钥匙串访问-->证书助理-->从证书颁发机构请求证书:

选择存储到磁盘,继续:

将CSR文件保存到MAC磁盘的某个位置,存储



6.回到浏览器,点击Choose File...

7.选择创建好的:CertificateSigningRequest.certSigningRequest 文件,点击选取, continue

8.点击 DownLoad 下载生成的证书(cer后缀的文件),然后点击Done,你创建的发布证书就会存储在帐号中。

PS: 这个证书只能下载一次。点击下载后,关闭页面后就不能再回到下载页面了。
二、创建App IDs和绑定你的App的Bundle Identifier
1.回到如下界面,点击左侧栏App IDs , 然后点击右上角的+号

2.填写App IDs和Bundle Identifier(App ID可随便输入,一般输入工程名,Bundle ID一般格式为com.domainname.appname,在打包工程时会用到,要与工程中的Bundle Identifier一致),填完后点击continue

3.点击register

4.点击Done:

三.生成描述文件(描述文件的作用就是把证书和Bundle Identifier关联起来)
1.选择点击左侧栏Provisioning Profiles底下的All ,然后点击右上角的+号

2.选择Distribution底下的App Store, 点击continue

3.在App ID 这个选项栏里面找到你刚刚创建的:App IDs(Bundle Identifier),点击Continue

4.选择你刚创建的发布证书,根据自己电脑上的发布证书日期来选择,点击Continue

5.在Profile Name栏里输入一个名字(这个是描述文件的名字,可随便输入),然后点击Continue
6.Download生成的描述文件,然后点击Done,双击安装(闪一下就完事了,没其它效果)


四、填写App Store相关资料
1.回到如下界面,点击iTunes Connect

2.登录开发者账号

3.登陆成功后,点击我的App

4.点击左上角+号,点击新建App

5.填写相关信息,然后点击创建

6.填写App信息,填完后点击存储

7.填写价格与销售范围 ,存储

8.依次把不同尺寸的App截图拖入到对应的里面 (command+s截屏)

9.填写App简介

10.填写App综合信息 (App图标大小为1024x1024 , 电话号码必须为有效格式。以“+”作为电话号码的开头,然后是国家/地区代码(例如,+44 844 209 0611))

点击分级 编辑

11.填写App审核信息, 点击存储

11.还有一个构建版本还没有生成,我们先把基本信息填写完毕,然后再进入Xcode中把项目打包发送到过来。
五、在Xcode中打包工程
1.打开xcode,选择Generic iOS Device

2.若App不支持横屏,去掉Landscape Left 和 Landscape Right

3.查看版本号和构建版本号

4. 在Build Settings 的Code Signing Identity中 配置发布证书


5.去掉断点、全局断点,僵尸模式等


都改为Release



6.有一个叫做bitcode的东西 ,官网说, 可以优化我们的二进制文件, 方便以后更新, 但是旧的一些第三方SDK或者frameWork不支持这个bitcode, 可能导致你上传代码失败. 看解决办法:将Yes改为No

7.选择 Xcode下 Product 下 Archive(专门用于传项目,或者打包项目)

点击Upload to App Store


点击Upload:

如下,上传成功

然后登陆iTunes Connect ,就可以看见构建版本那块出现一个+号 ,点击选择刚才上传上去的那个版本
提交以供审核 ,提交后会出现一些选择信息,根据App实际情况选择,然后提交

然后就可以看见APP的状态 ,正在等待审核。

网友评论