首页 > 其他 > 详细

xcode 脚本编译,打包ipa

时间:2016-02-16 14:49:00      阅读:194      评论:0      收藏:0      [点我收藏+]

  1.清理工程

/usr/bin/xcodebuild -target targetName clean
2.编译
/usr/bin/xcodebuild -target targetName build
3.打包
/usr/bin/xcrun -sdk iphoneos PackageApplication -v src_app_path -o dst_ipa_path
4.设置编译类型(Debug,Release,AdHoc,Distribution 默认是Release)
/usr/bin/xcodebuild -target targetName -configuration Release
5.设置app_dir
/usr/bin/xcodebuild -target targetName CONFIGURATION_BUILD_DIR app_dir
6.设置Debug Information Format真机连接调试时,可断点定位跟踪调试,可选择DWARF以加快编译速度;但是真机断开Xcode运行出现crash时,没有调试符号将无法逆向解析定位出问题的代码符号及其所在具体位置,故一般要选择DWARF with dSYM File。
/usr/bin/xcodebuild -target targetName DEBUG_INFORMATION_FORMAT=“dwarf-with-dsym"

xcode 脚本编译,打包ipa

原文:http://www.cnblogs.com/wentaolovecode/p/5192492.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!