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

 

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.

 

object-c其实没想象的那么糟糕阿。

 我整个9月份都在嘀咕object-c的这个语言太恶心,现在想想真是有点不知天高地厚了。。。这两个一直在用object-c写东西,慢慢的熟悉了这个语言,现在反而觉得它的语法还是很清晰的,除了那个[ ]以外,其他的地方还是保持了c的简洁,比c++要清晰的多。object-c再配上cocoa,真的让开发简单了很多阿。

工具阿工具

 这几天又开始学习iphone开发,在mac下用xcode,xcode确实是个很好的工具,尤其是用object-c时,代码补全那个爽阿,不过在用xcode的编辑器时遇到了巨大的问题。。。当我每次想要对之前写得东西做点修改时,总会不自觉的去按 esc键,然后试图使用hjkl移动光标。。。毫无疑问,这是行不通的。。。突然之间,我觉得无比痛苦。。。没有了vim的世界果然是让人崩溃的。。。最终,我舍弃了那些可爱的代码补全,把xcode的编辑器换成了vim,总算舒坦了。

btw:其实xcode的编辑器是支持emacs快捷键的,但我总觉得那些绑定很烂,不愿意用,还有mac下的那个传说中的终极编辑器textmate我也是用得,这个东西也确实无比强大,但我还是习惯了vim阿。