background image

Xcode3.2.6 破解免证书真机开发调试

    Xcode 只有破解后才能免费真机调试,否则需要注册苹果的开发者计划,需要 99 美元一
年,除非发布程序到苹果商店,否则可以先不注册,破解到真机调试。真机为越狱后的

ios

设备,比如

ipod,iPhone,iPad。我的 iPod 版本是 4.3.3,Xcode 版本是 3.2.6,mac 版本是

10.6.8。

    

第一步:创建证书

    

打开应用程序

->实用工具->钥匙串访问.

    

打开菜单:钥匙串访问

->证书助理->创建证书。

    

在打开的对话框中,名称输入:

iPhone Developer,选中让我覆盖这些默认值。

    

然后继续,再继续,然后输入你的

email,名称还是 iPhone Developer。然后继续,然后

再继续,再继续,这步很重要,去掉电子邮件保护的功能,选中代码签名的功能。

 

    

然后继续,再继续,主题备用名称扩展输入

RFC822 名称,填入邮箱即可。然后继续,

然后再继续,系统会创建该证书,并且提示创建成功,但是该证书不被信任,并且被打了
叉叉,不过没有关系能用就行。

    第二步:修改 Xcode    1. 关闭 Xcode,打开命令行终端,运行下面的命令:Shell 代码 

1

cd /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-

ins/iPhoneOS\ Build\ System\ Support.xcplugin/Contents/MacOS/
2

dd if=iPhoneOS\ Build\ System\ Support of=working bs=500 count=255

3

printf “\x8f\x2a\x00\x00″ >> working

4

dd if=iPhoneOS\ Build\ System\ Support of=working bs=1 skip=127504 seek=127504

5

/bin/mv -n iPhoneOS\ Build\ System\ Support iPhoneOS\ Build\ System\ Support.original

6
7

#.original 是备份,以后要用注册的证书的话,在恢复本文件即可

8

/bin/mv working iPhoneOS\ Build\ System\ Support

9

chmod a+x iPhoneOS\ Build\ System\ Support

复制代码

   2. 执行完后再运行下面的命令:(需要 internet 网络连接)Shell 代码 

10 mkdir /Developer/iphoneentitlements30
11 cd /Developer/iphoneentitlements30
12 curl -O http://www.alexwhittemore.com/iphone/gen_entitlements.txt
13 mv gen_entitlements.txt gen_entitlements.py