无证书调试,xcode破解详细教程

在越狱的 iphone 的 cydia 添加源 AppSync. 源地址 http://cydia.hackulo.us

关闭xcode

打开终端 

[html]  view plain copy
  1. cd /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk  
  2. sudo cp SDKSettings.plist SDKSettings.plist.orig  
  3. sudo vi SDKSettings.plist  
找到

[html]  view plain copy
  1. <key>CODE_SIGNING_REQUIRED</key>  
  2. <string>YES</string>  
 YES 改为 NO
然后找到

[html]  view plain copy
  1. <key>ENTITLEMENTS_REQUIRED</key>  
  2. <string>YES</string>  

把 YES 改为 NO 

注意:在 vi里面, 查找用 ‘/’ ,而没有 “Cmd-F”

[html]  view plain copy
  1. cd /Developer/Platforms/iPhoneOS.platform/  
  2. sudo cp Info.plist Info.plist.orig  
  3. sudo vi Info.plist  

会有二处下面的代码

[html]  view plain copy
  1. <key>CODE_SIGN_CONTEXT_CLASS</key>  
  2. <string>XCiPhoneOSCodeSignContext</string>  
找到

[html]  view plain copy
  1. <string>XCiPhoneOSCodeSignContext</string>  

替换为:

[html]  view plain copy
  1. <string>XCCodeSignContext</string>  
然后 继续 在终端里面
[html]  view plain copy
  1. cd ~/Desktop  
  2. vi script  
按 “i” 按键 粘贴到这里
[html]  view plain copy
  1. #!/bin/bash  
  2. cd /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS\ Build\ System\ Support.xcplugin/Contents/MacOS/  
  3. dd if=iPhoneOS\ Build\ System\ Support of=working bs=500 count=255  
  4. printf "\xc3\x26\x00\x00" >> working  
  5. /bin/mv -n iPhoneOS\ Build\ System\ Support iPhoneOS\ Build\ System\ Support.original  
  6. /bin/mv working iPhoneOS\ Build\ System\ Support  
  7. chmod a+x iPhoneOS\ Build\ System\ Support  


然后按ESC 按键,输入“:” “x”

然后enter回车按键

[html]  view plain copy
  1. chmod 777 script  
  2. ./script  

正常运行晚的结果如下
[html]  view plain copy
  1. $ ./script  
  2. 223+1 records in  
  3. 223+1 records out  
  4. 111648 bytes transferred in 0.002678 secs (41692099 bytes/sec)  

到这个时候 xcode 几乎破解ok了


[html]  view plain copy
  1. mkdir /Developer/iphoneentitlements401  
  2. cd /Developer/iphoneentitlements401  
  3. curl -O http://www.alexwhittemore.com/iphone/gen_entitlements.txt  
  4. mv gen_entitlements.txt gen_entitlements.py  
  5. chmod 777 gen_entitlements.py  
然后还要添加一个script  Project > New Build Phase > New Run Script Build Phase.  copy/paste this:

[html]  view plain copy
  1. export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate  
  2. if [ "${PLATFORM_NAME}" == "iphoneos" ]; then  
  3. /Developer/iphoneentitlements401/gen_entitlements.py "my.company.${PROJECT_NAME}" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent";  
  4. codesign -f -s "iPhone Developer" --entitlements "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/"  
  5. fi  


参考文档:http://kqwd.blog.163.com/blog/static/4122344820117191351263/
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值