2012年11月7日 星期三

MAC OSX 上的開發環境

1. 首先我們需要安裝 MacPort --- mac 上的 package 管理工具庫
安裝的網頁是 www.macports.org/install.php
找到對應的 OSX 版本,我的是 Snow Leopard,下載後安裝

2. 安裝 git,參考網頁 http://alvinalexander.com/mac-os-x/how-install-git-mac-os-x-osx
sudo port install git-core +svn +doc +bash_completion +gitweb

3. Install xcode. Under Snow Leopard, we only have xcode v4.2, which can support until iOS 5.0
    For 5.1 and above, we have to upgrade :
    A. Upgrade xcode with newer iOS SDK
      A.1 Download new version xcode, extract it, then go under
             /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
             Here lists all supported SDKs
      4.2  4.3  5.0  5.1 (9B176) Latest 
   A.2 Create these 2 folders
            sudo mkdir /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
            sudo mkdir /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1\ \(9B176\)/
      A.3 Copy the SDK to those 2 new folder
            sudo cp -Rf ./5.1\ \(9B176\)/ /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1\ \(9B176\)/
            sudo cp -Rf ./5.1\ \(9B176\)/ /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/
    B. Upgrade to Lion ...

沒有留言: