第一步:
1.进入开发者官网

2.证书 1是开发板证书,用于真机测试 2是上传证书用于发布最终版

3.证书申请

4.有两种形式 1.测试版证书 2.正式版证书 点击continue继续

5.请求证书

6.生成证书 将CSR文件保存到MAC磁盘的某个位置(这里我选择的是桌面,进行存储)

7.选择上一步生成的证书

8.返回第四步的上传证书界面 生成上传证书,点击下载按钮

9.下载完成双击文件导入到“Keychain Access,证书安装之后可以在钥匙串中查看

10.选中导入的证书,右键选择“Export "Developer" ...”

11.选中并右键导出格式选择为p12,以供其他Mac上使用(注意:其他电脑一定要用P12文件,cer文件无法使用)

第二步:App ID申请

2.第一个是描述文件名字(可以随便写) Bundle ID一般用网址倒着写的形式


3.选择要用的功能


4.可以输入关键字看AppID是否申请成功

第三步:创建描述文件

2.选择刚刚生成的App ID

3.选择证书

4.为生成的描述文件命名

第四步:
1.在上传应⽤之前,首先把工程内的全局断点,以及僵⼫尸模式去掉
1.1全局断点:

1.2僵⼫模式调试
debug模式改为release模式,这样会去掉系统帮助在写代码期间添加的帮助调试的代码

1.3更改需要上传的应⽤用的名字和应⽤用的唯⼀一APPID (Bundle identifi゙er:应
⽤用APPID;Bundle name:应⽤用的名字)
此处的应⽤用名字,最好与填写的应⽤
用信息相符此处的Bundle identifi゙er要与申请的APPID完全⼀一致


1.4必须⽀支持arm64位

1.5 iOS10需要配置授权信息
将配置信息粘贴在infoplist文件

<key>NSAppleMusicUsageDescription</key> <string>App需要您的同意,才能访问媒体资料库</string> <key>NSBluetoothPeripheralUsageDescription</key> <string>App需要您的同意,才能访问蓝牙</string> <key>NSCalendarsUsageDescription</key> <string>App需要您的同意,才能访问日历</string> <key>NSCameraUsageDescription</key> <string>App需要您的同意,才能访问相机</string> <key>NSHealthShareUsageDescription</key> <string>App需要您的同意才能访问健康</string> <key>NSHealthUpdateUsageDescription</key> <string>App需要您的同意才能访问健康更新</string> <key>NSLocationAlwaysUsageDescription</key> <string>App需要您的同意,才能始终访问位置</string> <key>NSLocationUsageDescription</key> <string>App需要您的同意,才能访问位置</string> <key>NSLocationWhenInUseUsageDescription</key> <string>App需要您的同意,才能在使用期间访问位置</string> <key>NSMicrophoneUsageDescription</key> <string>App需要您的同意,才能访问麦克风</string> <key>NSMotionUsageDescription</key> <string>App需要您的同意,才能访问运动与健身</string> <key>NSPhotoLibraryUsageDescription</key> <string>App需要您的同意,才能访问相册</string> <key>NSRemindersUsageDescription</key> <string>App需要您的同意,才能访问提醒事项</string>
第五步:准备打包
1.导出ipa包
方式1:点击Product—Archieve
方式2(常用):

方式3:http://www.jianshu.com/p/558f7f901a85
2.进入开发者官网进入Itunes创建应用

3.设置价格

4.提交信息

5.填写信息


6.上传ipa

7.上传无误的话,进入Itunes,构建版本处会出现+号,进去按照提示操作即可
网友评论