WEB开发网
开发学院手机开发iPhone 开发 Ubuntu上构筑iPhone OS3.1.2开发环境 阅读

Ubuntu上构筑iPhone OS3.1.2开发环境

 2010-05-26 15:35:00 来源:WEB开发网   
核心提示:在建立编译环境前,请先下载好所需的SDK和Firmware文件:iPhone1,2_3.1.2_7D11_Restore.ipswhttp://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-7265.20091008.Xsd32/i

在建立编译环境前,请先下载好所需的SDK和Firmware文件:

iPhone1,2_3.1.2_7D11_Restore.ipsw

http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-7265.20091008.Xsd32/iPhone1,2_3.1.2_7D11_Restore.ipsw


iphone_sdk_3.1.2_with_xcode_3.1.4__leopard__9m2809.dmg

http://shuqun.com/files/iphone_sdk_3.1.2_with_xcode_3.1.4__leopard__9m2809.dmg

我的Linux HOST环境为Ubuntu 9.10(Karmic Koala),在这里利用iphonedevonlinux建立toolchain。

首先配置好编译所需的HOST环境,在终端中输入以下命令:

1 sudo apt-get install automake bison cpio flex g++ g++-4.3 g++-4.3-multilib gawk gcc-4.3 git-core gobjc-4.3 gzip libbz2-dev libcurl4-openssl-dev libssl-dev make mount subversion sudo tar unzip uuid uuid-dev wget xar zlib1g-dev

点击这里获取iphonedevonlinux源代码:

1 $ mkdir -p ~/iphone/toolchain

2 $ cd ~/iphone/toolchain

3 $ svn checkout http://iphonedevonlinux.googlecode.com/svn/trunk/ ./

目前checkout out的svn版本为83。

拷贝SDK,firmware文件到相应目录:

1 $ mkdir -p ~/iphone/toolchain/files/firmware

2 $ mv ./iphone_sdk_3.1.2_with_xcode_3.1.4__leopard__9m2809.dmg ~/iphone/toolchain/files/

3 $ mv ./iPhone1,2_3.1.2_7D11_Restore.ipsw ~/iphone/toolchain/files/firmware/

手动设置密匙,注释掉toolchain.sh中下载密匙的代码:

1 $ gedit ~/iphone/toolchain/toolchain.sh

01 unzip -d "${TMP_DIR}" -o "${FW_FILE}" "${FW_RESTORE_SYSTEMDISK}"

02

03 #if [ -z "$DECRYPTION_KEY_SYSTEM" ] ; then

04 #echo "We need the decryption key for `basename $FW_RESTORE_SYSTEMDISK`."

05 #echo "I'm going to try to fetch it from $IPHONEWIKI_KEY_URL...."

06 #

07 #IPHONEWIKI_KEY_URL=$( wget --quiet -O - $IPHONEWIKI_KEY_URL | awk '

1 2 3  下一页

Tags:Ubuntu 构筑 iPhone

编辑录入:coldstar [复制链接] [打 印]
赞助商链接