Xcode破解 3.2.4和3.2.5版本通過是本文要介紹的內容,我們之間進入話題,首先關閉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中。點觸運行無任何錯誤提示。
小結:Xcode破解 3.2.4和3.2.5版本通過的內容介紹完了,希望本文對你有所協助。