`
sslaowan
  • 浏览: 373764 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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)下试验成功

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics