我的系統環境:
- Mac OS X 10.5.8 原版安裝+voodoo kernel
- Xcode 3.1.4
- iPhone 3G 16G 美版, iPhone OS 3.1.2 黑雨,已越獄
證書偽造:
- 先按照 該教程 的步驟添加證書。注意,原教程選擇的是“系統”證書,這里我們用“登錄”證書,切記。
Xcode破解
- 關閉Xcode,打開你的命令行終端,復制粘貼下面的代碼:
#!/bin/bash
cd /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS\ Build\ System\ Support.xcplugin/Contents/MacOS/
dd if=iPhoneOS\ Build\ System\ Support of=working bs=500 count=255
printf “\x8f\x2a\x00\x00″ >> working
dd if=iPhoneOS\ Build\ System\ Support of=working bs=1 skip=127504 seek=127504
/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
- 執行完后再復制粘貼下面的代碼到命令行終端:(需要internet網絡連接)
mkdir /Developer/iphoneentitlements30
cd /Developer/iphoneentitlements30
curl -O http://www.alexwhittemore.com/iphone/gen_entitlements.txt
mv gen_entitlements.txt gen_entitlements.py
chmod 777 gen_entitlements.py
- 執行完腳本后修改”/Developer/Platforms/iPhoneOS.platform/Info.plist”文件,做如下修改:
新增如下兩項:
PROVISIONING_PROFILE_ALLOWED = NO
PROVISIONING_PROFILE_REQUIRED = NO
- 再用文本編輯器打開”/Developer/Platforms/iPhoneOS.platform/Info.plist”文件,將所有“XCiPhoneOSCodeSignContext”替換為“XCCodeSignContext”,(非常重要,不進行此步驟會導致打開項目文件Xcode會崩潰報錯退出)保存退出。
- 打開Xcode,打開你的項目,Project>>Edit Project Setting,選擇“Build”頁面,Configurations和Show都選擇All,找到Code Signing Identity項,刪除其子項,并將“Code Signing Identity”賦值為“iPhone Developer”(其實是個選項)。
- 然后找到你項目的xxx-Info.plist文件,添加“SignerIdentity”項,其值為“Apple iPhone OS Application Signing”.保存。
- 將iPhone接入電腦,在Xcode的Window>>Organizer中會偵測到你的iPhone.查看iPhone和你的Xcode識別正常后退出Organizer,選擇編譯環境為“iPhone Device-3.1.2|Release”,點擊"Build and Go",期間會出現讓我們選擇簽名證書,點選“允許”后,祈禱你的iPhone屏幕亮起吧。
- 你的程序會自動下載到你的iPhone中。點觸運行無任何錯誤提示。
- 安裝Appsync:
- Open Cydia (DONT USE ICY)
- Add this source: http://cydia.hackulo.us
- install AppSync or installd
- Restart iPhone
- Connect iPhone to your PC/Mac by USB-Cable
- Copy cracked ipa files into your iTunes Library (just drag and drop to the iTunes Window)
- Tell iTunes to install applications that you want
- Start Syncing iPhone!
- enjoy it!
---------------------------------------------------------
專注移動開發
Android, Windows Mobile, iPhone, J2ME, BlackBerry, Symbian
posted on 2010-01-18 21:18
TiGERTiAN 閱讀(4853)
評論(5) 編輯 收藏 所屬分類:
iPhone