SDK 3.1.2 and XCODE 3.2.1 build & go for a jailbreak iphone

zhz44 posted @ 2009年12月07日 16:59 in mac&&iphone编程 , 2482 阅读

 

The following text is about how to skip the provisioning with XCODE 3.2.1 and SDK 3.1.2 in Snow Leopard, so we can test the application on the real device without paying the $99 to Apple.

 

NOTE: if you are using Leopard and XCODE 3.1.4, you should follow the instruction here

1, first of all, we need a signing identity. If you dont know how to make it, check this link.

2, open your favorite text editor, cop and past the following code:

 

#!/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=1 count=300752

printf "\xc8\x2f\x00\x00" >> working

dd if=iPhoneOS\ Build\ System\ Support of=working bs=1 skip=300756 seek=300756

/bin/mv -n iPhoneOS\ Build\ System\ Support iPhoneOS\ Build\ System\ Support.original

save the file as path.sh

 

running the following command in the terminal.

sudo sh ./path.sh

OK, now you can build and install your apps on the real machine now.

 

If you still get the error like code sign -1, try to reinstall your XCODE, the apple the above method again.

 


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter