Xcode3.2.4和3.2.5版本通過
Xcode 3.2.4和3.2.5版本通過是本文要介紹的內(nèi)容,我們之間進入話題,首先關(guān)閉Xcode,打開你的命令行終端,復(fù)制粘貼下面的代碼:
#!/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
執(zhí)行完后再復(fù)制粘貼下面的代碼到命令行終端:(需要internet網(wǎng)絡(luò)連接)
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
執(zhí)行完腳本后修改”/Developer/Platforms/iPhoneOS.platform/Info.plist”文件,做如下修改:
新增如下兩項:
PROVISIONING_PROFILE_ALLOWED = NO
PROVISIONING_PROFILE_REQUIRED = NO
再用文本編輯器打開”/Developer/Platforms/iPhoneOS.platform/Info.plist”文件,將所有“XCiPhoneOSCodeSignContext”替換為“XCCodeSignContext”,(非常重要,不進行此步驟會導(dǎo)致打開項目文件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,選擇編譯環(huán)境為“iPhone Device-3.1.2|Release”,點擊"Build and Go",期間會出現(xiàn)讓我們選擇簽名證書,點選“允許”后,祈禱你的iPhone屏幕亮起吧。
你的程序會自動下載到你的iPhone中。點觸運行無任何錯誤提示。
小結(jié):Xcode3.2.4和3.2.5版本通過的內(nèi)容介紹完了,希望本文對你有所幫助。
轉(zhuǎn)自:http://bbs.weiphone.com/read-htm-tid-591311.html