Unity3d爬坑之发布iOS xcode8打包.ipa 安装到手机
2017-05-17 14:45
225 查看
一 unity3d 设置部分
![](https://img-blog.csdn.net/20170517134657067?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGl1eGlvbmd0YW9fMTEyNA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
![](https://img-blog.csdn.net/20170517134708668?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGl1eGlvbmd0YW9fMTEyNA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
二 证书配置
注册购买开发者账号
![](https://img-blog.csdn.net/20170517135026243?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGl1eGlvbmd0YW9fMTEyNA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
选择iOS, tvOS, watchOS
选择All
点击右上角新添加证书
![](https://img-blog.csdn.net/20170517135545720?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGl1eGlvbmd0YW9fMTEyNA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
5 因为是做App打包安装或者上传,选择生产证书(选择App Store and Ad Hoc)
生成证书1
![](https://img-blog.csdn.net/20170517135734141?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGl1eGlvbmd0YW9fMTEyNA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
生成证书2
![](https://img-blog.csdn.net/20170517135832381?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGl1eGlvbmd0YW9fMTEyNA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
生成证书3
![](https://img-blog.csdn.net/20170517140121392?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGl1eGlvbmd0YW9fMTEyNA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
生成证书4
![](https://img-blog.csdn.net/20170517140230002?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGl1eGlvbmd0YW9fMTEyNA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
上传CSR文件去获取证书(CSR文件需要我们到本机钥匙串里去创建)
在Launchpad的其他里面,点击钥匙串访问弹出如下界面
![](http://upload-images.jianshu.io/upload_images/1274138-ad0808d89178b859.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
其他
![](http://upload-images.jianshu.io/upload_images/1274138-8876e60b1130c953.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
钥匙串访问
工具栏选择钥匙串访问->证书助理->从证书颁发机构请求证书...
![](http://upload-images.jianshu.io/upload_images/1274138-f30c1698a6bc79e6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
请求证书
![](http://upload-images.jianshu.io/upload_images/1274138-24facb0e48b85b4a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
证书信息
将CSR文件保存到MAC磁盘的某个位置(这里我选择的是桌面,进行存储)
![](http://upload-images.jianshu.io/upload_images/1274138-4df2ae59e93d618f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
存储证书
![](http://upload-images.jianshu.io/upload_images/1274138-b3256c983968c9f4?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
点击完成
![](http://upload-images.jianshu.io/upload_images/1274138-db714fde2cafeff9.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
CertificateSigningRequest.certSigningRequest 文件
然后回到浏览器,点击choose File..
![](http://upload-images.jianshu.io/upload_images/1274138-870a2a1648e7964a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
选择CSR文件
选择创建好的:CertificateSigningRequest.certSigningRequest 文件,点击选取
![](http://upload-images.jianshu.io/upload_images/1274138-ec52a8da9c4d4080.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
选取CSR文件
点击Generate上传证书
![](http://upload-images.jianshu.io/upload_images/1274138-0fc7782a44570072.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
上传CSR证书
跳转到如下界面,点击 DownLoad 下载生成的证书(cer后缀的文件),然后点击Done,你创建的发布证书就会存储在帐号中。
![](http://upload-images.jianshu.io/upload_images/1274138-4542b7d35e10b9a6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
下载生成的证书
![](http://upload-images.jianshu.io/upload_images/1274138-15535ecf801c2233.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
点击App IDs,进入如下界面,点击右上角的 + 号
![](http://upload-images.jianshu.io/upload_images/1274138-6a6a88fdce4fed8f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
点击App IDs
填写App IDs和Bundle Identifier
![](http://upload-images.jianshu.io/upload_images/1274138-8510374b1d2e269d.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
填写App IDs和Bundle Identifier
注意:
上传App使用的Bundle Identifier(不要有-,都是英文+数字)必须是固定的,不能使用占位符。
如果你的Bundle Identifier已经在网站上绑定了,如果你又修改了你工程里面这个Bundle Identifier的话,需要重新进入到开发者账号里面绑定。
![](http://upload-images.jianshu.io/upload_images/1274138-883f55effaf72bb1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
修改工程的Bundle Identifier
下面选择App中包含的服务,默认有两项,其余的根据自己项目的需求进行选择
![](http://upload-images.jianshu.io/upload_images/1400788-234460360220541f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
App Services
点击continue
![](http://upload-images.jianshu.io/upload_images/1274138-52037637f6a2cc15.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
点击continue
点击Register
![](http://upload-images.jianshu.io/upload_images/1274138-4c61fee1a2752901.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
点击Register
点击Done
![](http://upload-images.jianshu.io/upload_images/1274138-762cabdbfce24ca4.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
点击Done
找到Provisioning Profiles ,点击All,然后点击右上角 + 号
![](http://upload-images.jianshu.io/upload_images/1274138-ef506981f65e7382.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
Provisioning Profiles
因为是发布,所以选择下面App Store这个描述文件,点击Continue
![](http://upload-images.jianshu.io/upload_images/1274138-34d1fc1c18b8a951.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
选择App Store
在App ID 这个选项栏里面找到你刚刚创建的:App IDs(Bundle Identifier) 类型的套装,点击Continue
![](http://upload-images.jianshu.io/upload_images/1274138-8d669ba0500397a3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
选择发布项目的Bundle Identifier
选择你刚创建的发布证书(或者生成p12文件的那个发布证书),根据自己电脑上的发布证书日期来选择,点击Continue
![](http://upload-images.jianshu.io/upload_images/1274138-03caf3bb128101f7.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
选择创建的发布证书
在Profile Name栏里输入一个名字(这个是PP文件的名字,可随便输入,在这里我用工程名字,便于分别),然后点击Generate
![](http://upload-images.jianshu.io/upload_images/1274138-5038e40b6bb04861.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
给描述文件起个名字
Download生成的PP文件,然后点击Done,双击安装(闪一下就完事了,没其它效果)
![](http://upload-images.jianshu.io/upload_images/1274138-ab108d3df2888867.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
Download生成的PP文件
![](http://upload-images.jianshu.io/upload_images/1274138-e13c79c500072b05.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
生成的描述文件
在Xcode中选择iOS Device(这里不能选择模拟器),按照下图提示操作
![](http://upload-images.jianshu.io/upload_images/1400788-64a16f618e2a6781.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
选择iOS Device
![](https://img-blog.csdn.net/20170517141818774?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGl1eGlvbmd0YW9fMTEyNA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
如果你的应用不支持横屏,把这两个勾去掉
查看版本号和构建版本号 更改 info.plist文件
![](https://img-blog.csdn.net/20170517140911895?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGl1eGlvbmd0YW9fMTEyNA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
配置发布证书 点击 build setting
![](https://img-blog.csdn.net/20170517141257131?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGl1eGlvbmd0YW9fMTEyNA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
选择 Xcode下 Product 下 Archive(专门用于传项目,或者打包项目)等待几分钟
![](http://upload-images.jianshu.io/upload_images/1274138-798bfadcd23603eb.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
选择 Export..等待出现下图点击next
![](https://img-blog.csdn.net/20170517143758688?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGl1eGlvbmd0YW9fMTEyNA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
选择已付费的账号,然后点击Choose
![](http://upload-images.jianshu.io/upload_images/1274138-5996025cf97df41e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
继续等待
![](https://img-blog.csdn.net/20170517143858828?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGl1eGlvbmd0YW9fMTEyNA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
点击next
![](https://img-blog.csdn.net/20170517144300486?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGl1eGlvbmd0YW9fMTEyNA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
继续等待 出现保存目录 选择目录 点击导出
二 证书配置
注册购买开发者账号
选择iOS, tvOS, watchOS
选择All
点击右上角新添加证书
5 因为是做App打包安装或者上传,选择生产证书(选择App Store and Ad Hoc)
生成证书1
生成证书2
生成证书3
生成证书4
上传CSR文件去获取证书(CSR文件需要我们到本机钥匙串里去创建)
在Launchpad的其他里面,点击钥匙串访问弹出如下界面
![](http://upload-images.jianshu.io/upload_images/1274138-ad0808d89178b859.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
其他
![](http://upload-images.jianshu.io/upload_images/1274138-8876e60b1130c953.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
钥匙串访问
工具栏选择钥匙串访问->证书助理->从证书颁发机构请求证书...
![](http://upload-images.jianshu.io/upload_images/1274138-f30c1698a6bc79e6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
请求证书
![](http://upload-images.jianshu.io/upload_images/1274138-24facb0e48b85b4a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
证书信息
将CSR文件保存到MAC磁盘的某个位置(这里我选择的是桌面,进行存储)
![](http://upload-images.jianshu.io/upload_images/1274138-4df2ae59e93d618f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
存储证书
点击完成
![](http://upload-images.jianshu.io/upload_images/1274138-db714fde2cafeff9.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
CertificateSigningRequest.certSigningRequest 文件
然后回到浏览器,点击choose File..
![](http://upload-images.jianshu.io/upload_images/1274138-870a2a1648e7964a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
选择CSR文件
选择创建好的:CertificateSigningRequest.certSigningRequest 文件,点击选取
![](http://upload-images.jianshu.io/upload_images/1274138-ec52a8da9c4d4080.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
选取CSR文件
点击Generate上传证书
![](http://upload-images.jianshu.io/upload_images/1274138-0fc7782a44570072.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
上传CSR证书
跳转到如下界面,点击 DownLoad 下载生成的证书(cer后缀的文件),然后点击Done,你创建的发布证书就会存储在帐号中。
![](http://upload-images.jianshu.io/upload_images/1274138-4542b7d35e10b9a6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
下载生成的证书
![](http://upload-images.jianshu.io/upload_images/1274138-15535ecf801c2233.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
创建App IDs和绑定你的App的Bundle Identifier
点击App IDs,进入如下界面,点击右上角的 + 号![](http://upload-images.jianshu.io/upload_images/1274138-6a6a88fdce4fed8f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
点击App IDs
填写App IDs和Bundle Identifier
![](http://upload-images.jianshu.io/upload_images/1274138-8510374b1d2e269d.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
填写App IDs和Bundle Identifier
注意:
上传App使用的Bundle Identifier(不要有-,都是英文+数字)必须是固定的,不能使用占位符。
如果你的Bundle Identifier已经在网站上绑定了,如果你又修改了你工程里面这个Bundle Identifier的话,需要重新进入到开发者账号里面绑定。
![](http://upload-images.jianshu.io/upload_images/1274138-883f55effaf72bb1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
修改工程的Bundle Identifier
下面选择App中包含的服务,默认有两项,其余的根据自己项目的需求进行选择
![](http://upload-images.jianshu.io/upload_images/1400788-234460360220541f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
App Services
点击continue
![](http://upload-images.jianshu.io/upload_images/1274138-52037637f6a2cc15.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
点击continue
点击Register
![](http://upload-images.jianshu.io/upload_images/1274138-4c61fee1a2752901.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
点击Register
点击Done
![](http://upload-images.jianshu.io/upload_images/1274138-762cabdbfce24ca4.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
点击Done
生成描述文件(描述文件的作用就是把证书和Bundle Identifier关联起来)
找到Provisioning Profiles ,点击All,然后点击右上角 + 号![](http://upload-images.jianshu.io/upload_images/1274138-ef506981f65e7382.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
Provisioning Profiles
因为是发布,所以选择下面App Store这个描述文件,点击Continue
![](http://upload-images.jianshu.io/upload_images/1274138-34d1fc1c18b8a951.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
选择App Store
在App ID 这个选项栏里面找到你刚刚创建的:App IDs(Bundle Identifier) 类型的套装,点击Continue
![](http://upload-images.jianshu.io/upload_images/1274138-8d669ba0500397a3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
选择发布项目的Bundle Identifier
选择你刚创建的发布证书(或者生成p12文件的那个发布证书),根据自己电脑上的发布证书日期来选择,点击Continue
![](http://upload-images.jianshu.io/upload_images/1274138-03caf3bb128101f7.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
选择创建的发布证书
在Profile Name栏里输入一个名字(这个是PP文件的名字,可随便输入,在这里我用工程名字,便于分别),然后点击Generate
![](http://upload-images.jianshu.io/upload_images/1274138-5038e40b6bb04861.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
给描述文件起个名字
Download生成的PP文件,然后点击Done,双击安装(闪一下就完事了,没其它效果)
![](http://upload-images.jianshu.io/upload_images/1274138-ab108d3df2888867.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
Download生成的PP文件
![](http://upload-images.jianshu.io/upload_images/1274138-e13c79c500072b05.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
生成的描述文件
在Xcode中打包工程
在Xcode中选择iOS Device(这里不能选择模拟器),按照下图提示操作![](http://upload-images.jianshu.io/upload_images/1400788-64a16f618e2a6781.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
选择iOS Device
如果你的应用不支持横屏,把这两个勾去掉
查看版本号和构建版本号 更改 info.plist文件
配置发布证书 点击 build setting
选择 Xcode下 Product 下 Archive(专门用于传项目,或者打包项目)等待几分钟
![](http://upload-images.jianshu.io/upload_images/1274138-798bfadcd23603eb.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
选择 Export..等待出现下图点击next
选择已付费的账号,然后点击Choose
![](http://upload-images.jianshu.io/upload_images/1274138-5996025cf97df41e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
继续等待
点击next
继续等待 出现保存目录 选择目录 点击导出
相关文章推荐
- 怎么打包为ipa格式的软件包以及怎么安装到手机终端上。 (我的开发环境为Xcode6.1.1 )
- 解决"打包成功后的ipa不能安装到手机"的问题
- iOS开发中,怎么打包为ipa格式的软件包以及怎么安装到手机终端上
- iOS开发中,打包为ipa格式的软件包以及怎么安装到手机终端上
- xcode5 ipa 打包 并安装到手机上
- unity3d 在mac 下命令打包发布IPA包
- Unity3D打包 将发布的exe文件打包成一个Windows安装文件(自解压文件)
- 真机调试/发布app/测试机如何安装ipa ---(xcode打包ipa)
- IOS学习之——查看UDID 打包ipa 安装到客户手机上
- IOS发布,Archive打包,ipa不用发布安装到任意机子上
- iPhone手机ipa破解补丁安装方法和ipa软件游戏安装教程(1)
- 签名ipa,让其它手机也安装
- vs2010发布、打包安装程序(超全超详细)
- vs2010发布、打包安装程序(超全超详细)
- winform调用sqlite,打包发布后,在客户机上安装运行却报错:找不到System.Data.SQLite.DLL
- ios开发如何批量打包?如何让同一个程序在一个手机上多次安装时不覆盖以前安装的,而是重新生成一个新的
- 发布程序 通过safari直接下载手机安装
- vs2010发布、打包安装程序(超全超详细)
- 给越狱手机打包ipa的方法,需要开发者账号
- Python打包、安装与发布工具--setuptools