如何搭建iPhone程序开发环境

This item was filled under [ iPhone学习 ]

1,在PC上装一个Mac操作系统(如IBM T60),提供基础开发环境。

2,下载Mac下开发工具XCode,近1G,完全安装有2.5G: xcode_2.4.1_8m1910_6936315.dmg

3,下载iPhone工具链: http://digitalbound.net/iPhoneToolchainv03.dmg

4,破解iphone固件
./vfdecrypt -i 694-5262-39.dmg -o decrypted.dmg -k 28c909fc6d322fa18940f03279d70880e59a4507998347c70d5b8ca7ef090ecccc15e82d

其中694-5262-39.dmg可以从iphone1,1_1.0_1A543a_Restore.ipsw中提取
vfdecrypt程序可以从http://rapidshare.com/files/40981513/vfdecrypt.zip.html下载

5,复制一些文件:(先建立heavenly文件夹)
sudo cp -R /Volumes/Heavenly1A543a.UserBundle/* /Developer/SDKs/iPhone/heavenly/
sudo cp /Developer/SDKs/iPhone/lib/libarmfp.dylib /Developer/SDKs/iPhone/heavenly/usr/lib

6,设置环境变量:
echo “export PATH=$PATH:/Developer/SDKs/iPhone/bin/” >> ~/.profile; source ~/.profile

7,试验HelloWorld,确认开发环境配制没有问题
8,开始为iPhone开发程序吧 !!!

参考网站:

http://ellkro.jot.com/WikiHome/ToolchainInstallation

http://ellkro.jot.com/WikiHome/HowToBuildObjCApps

http://iphone.fiveforty.net/wiki/index.php/Decrypt_Firmware

发表者Tong Ren
From:http://www.iphoneinchina.com/iphoneblog/2007/08/how-to-setup-develope-environment-for.html

Bookmark and Share

喜欢这篇文章的人还喜欢。。。

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Comment