1 頁 (共 1 頁)

xCode 4.1 開發後的apps 丟進手機

發表於 : 週一 8月 08, 2011 3:58 pm
rusli
http://www.alexwhittemore.com/?p=398


代碼: 選擇全部

cd /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk
sudo cp SDKSettings.plist SDKSettings.plist.orig
sudo vi SDKSettings.plist


代碼: 選擇全部


<key>CODE_SIGNING_REQUIRED</key>
<string>YES</string>  << 改成 NO

<key>ENTITLEMENTS_REQUIRED</key>
<string>YES</string> << 改成 NO




代碼: 選擇全部


cd /Developer/Platforms/iPhoneOS.platform/
sudo cp Info.plist Info.plist.orig
sudo vi Info.plist



兩個地方

代碼: 選擇全部


<string>XCiPhoneOSCodeSignContext</string>

改成

<string>XCCodeSignContext</string>




代碼: 選擇全部

cd ~/Desktop
vi script


代碼: 選擇全部

#!/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 "\xc3\x26\x00\x00" >> working
/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


代碼: 選擇全部

chmod 777 script
./script


執行
$ ./script

223+1 records in
223+1 records out
111648 bytes transferred in 0.002678 secs (41692099 bytes/sec)