打包api
2016-04-27 本文已影响458人
KeepFighting
-
限制电脑
1.1 通过钥匙串在电脑生成SCR证书,上传到开发者网站
Paste_Image.png

上传

上传成功后,下载cer证书

2.限制app

3.限制iPhone设备
查看iPhone设备的标识UDID
xcode- window-devices


4.生成描述文件
只是用来打包测试 选择 ADHoc

选择appID

选择对应的证书,选择对应的真机设备,最后下载生成的描述文件

5.双击 cer证书以及描述文件mobileProvision
证书可以在钥匙串看到
描述文件可以在资源库(Finder-前往文件夹(按住option后会显示资源库文件夹))里面找到

6.xcode进行打包配置
6.1 核对bundleID,确保与上面在开发者的填写的appID一致
6.2 核对开发者账号 在xcode - Preference-Acount 添加,然后在team选择对应的账号

6.3 配置codeSign,确保证书和描述文件跟上面的一致

-
Product -Archive
成功后, Export
导出可能遇到下图这个情况:
Paste_Image.png
处理证书已过期问题:
在钥匙串删除已经过期的证书,重新下载新的


下载地址:http://developer.apple.com/certificationauthority/AppleWWDRCA.cer
8.ipa生成后,利用xcode安装到手机
手机连接电脑
xcode-window-Devices

其他:
生成p12文件:利用钥匙串生成

相关文章:
http://blog.csdn.net/zhaobingxu24/article/details/50679912