1。iphone自动打包
http://3426724.blog.51cto.com/3416724/883484
http://www.cocoachina.com/bbs/read.php?tid=21237
2。IOS自动化打包介绍
http://stblog.baidu-tech.com/?p=1295
3。新年送大家一个好东西,放上一个自动打包各种渠道的shell
http://www.cnblogs.com/xingchen/archive/2012/01/30/2331917.html
4。How to re-sign the ipa file?
http://stackoverflow.com/questions/5160863/how-to-re-sign-the-ipa-file
5。RESIGN AN IPHONE APP, INSERT NEW BUNDLE ID AND SEND TO XCODE ORGANIZER FOR UPLOAD
http://www.ketzler.de/2011/01/resign-an-iphone-app-insert-new-bundle-id-and-send-to-xcode-organizer-for-upload/
6。re-signing-an-ios-app-without-xcode
http://floatlearning.com/2011/11/re-signing-an-ios-app-without-xcode/
7.xcodebuild命令官方文档
https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/xcodebuild.1.html
8.自动化打包
http://www.cnblogs.com/ace9/archive/2012/08/31/2664920.html
编译终于成功,中间遇到问题。万恶的坑爹,花了一下午找问题。终于。。。是通过3)搞定的
<code style="margin:0px; padding:0px; border:0px; vertical-align:baseline; font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif"><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent">codesign_allocate</span><span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent">:</span><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent"> </span><span class="kwd" style="color:#008b;margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent;">object</span><span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent">:</span><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent"> </span></code>
<code style="margin:0px; padding:0px; border:0px; vertical-align:baseline; font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif"><span class="kwd" style="color:#008b;margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent;">object</span><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent"> file format unrecognized</span><span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent">,</span><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent"> invalid</span><span class="pun" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent">,</span><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent"> </span><span class="kwd" style="color:#008b;margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent;">or</span><span class="pln" style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent"> unsuitable</span></code>搜索网上基本解决方案如下:
1。重新定位CODESIGN_ALLOCATE
方法1:
- export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
方法2:
- sudo mv /usr/bin/codesign_allocate /usr/bin/codesign_allocate_old
- sudo ln -s /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate /usr/bin
2。执行文件和程序名(不是显示名)一直名字一致
Make sure the 'Executable Name' (CFBundleExecutable) entry in your target's info.plist matches the 'Product Name' specified in your target settings.
3。把 xcode command line tools 升级到最新。
After fiddling with it, I found a solution. I updated by xcode command line tools and ran xcrun without explicitly naming its path (I was running usr/bin/xcrun before) some combination of these two things fixed it for me. –