IOS自动化打包

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:

  1. export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate  

方法2:

  1. sudo mv /usr/bin/codesign_allocate /usr/bin/codesign_allocate_old  
  2. 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. –

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值