Xcode 4.1/4.2/4.2.1 免证书(iDP)开发+真机调试+生成IPA全攻略

强大的原文链接,我只做一些些解释工作。

http://kqwd.blog.163.com/blog/static/4122344820117191351263/

 

1 原文中使用vim,也可以使用nano(对于rd而言这也不是啥问题)

2 #!/bin/bash

cd /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/iPhoneOS\ Build\ System\ Support.xcplugin/Contents/MacOS/
dd if=iPhoneOS\ Build\ System\ Support of=working bs=500 count=255
printf "xc3x26x00x00" >> working
/bin/mv -n iPhoneOS\ Build\ System\ Support iPhoneOS\ Build\ System\ Support.original
/bin/mv working iPhoneOS\ Build\ System\ Support
chmod a+x iPhoneOS\ Build\ System\ Support

 

 

the section means that backup  the file named 'iPhoneOS\ Build\ System\ Support ',dd is command in linux,if means input file,of means ouput file,printf >> means that appending string to the file named working,you can open the working (nano ./working) to check the end of the file.

3 每步操作都有备份,所以不用担心如果申请了iDP之后的问题,大不了就恢复可以了,所有的操作都只是改了一些文件的内容而已,恢复回来就可以了

4 注意ios4版本对应了armv6,因此在build setting那个里要设置好,否则编译会出问题。当插入设备后,要将其设为开发机,并且将run那个地方改为指向你连接的那个设备,此时那个archiving才能用,否则是灰的。

5 注意最后那个py脚本里面的/Developer/iphoneentitlements401/gen_entitlements.py "my.company.${PROJECT_NAME}" 

   my.company应该改成你项目的命名空间。

6 我在XCode4.2+itouch4(ios 4.2.1)下试验成功

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值