Xcode打包过程
打包过程,Bundle Identifier、Team、Provisioning Profile的配置在打包过程中尤为重要。
Archives=>Distribute App
1.Save for iOS App Store Deployment
保存到本地 准备上传App Store 或者在越狱的iOS设备上使用
2.Save for Ad Hoc Deployment
保存到本地 准备在账号添加的可使用设备上使用(具体为在开发者账户下添加可用设备的udid),
该app包是发布证书编译的(The app will be code signed with the distribution certificate.)
3.Save for Enterprise Deployment
这种主要针对企业级账户下 准备本地服务器分发的app
4.Save for Development Deployment
针对内部测试使用,主要给开发者的设备(具体也为在开发者账户下添加可用设备的udid)。
该app包是开发证书编译的(The app will be code signed with your development certificate)
=>选择发布方式1:=>Upload/Export=>include bitcode(苹果优化监管用)
=>选择发布方式2:=>Upload/Export=>include bitcode(苹果优化监管用)通过配置,可以访问网页,点击在线安装ipa
<a href="itms-services://?action=download-manifest&url=https://你的网站地址/manifest.plist">点击在线安装ipa</a>
AdHoc和Development编译主要是在通知的时候,有通知设备限制区别。
Shell脚本打包
#使用方法:修改脚本相应配置,到./filename.sh目录下,控制台输入./filename.sh运行即可
if [ ! -d ./IPADir ];
then
mkdir -p IPADir;
fi
#工程绝对路径
project_path=$(cd `dirname $0`; pwd)
#工程名 将XXX替换成自己的工程名
project_name=xxxx
#scheme名(应用) 将XXX替换成自己的sheme名
scheme_name=xxxx
#打包模式 Debug/Release
development_mode=Release
#build文件夹路径
build_path=${project_path}/build
#plist文件所在路径
exportOptionsPlistPath=${project_path}/exportAppstore.plist
#导出.