一:安裝brew和gitgit
1. mkdir /usr/localgithub
2. curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1web
3. /usr/local/bin/brew install gitxcode
二:下載編譯webrtcbash
1. 下載depot_tools curl
LeeHonGee-MacBook:~ mac$ svn co http://src.chromium.org/svn/trunk/tools/depot_toolssvn
2. 打開source .bash_profile 添加depot_tools路徑到系統目錄 export PATH=$PATH:/Users/mac/depot_toolsgoogle
3. LeeHonGee-MacBook:~ mac$ cd /Users/mac/depot_toolsurl
LeeHonGee-MacBook:~ depot_tools$ gclient config http://webrtc.googlecode.com/svn/trunkspa
4. LeeHonGee-MacBook:~ depot_tools$ gclient sync --force
5. LeeHonGee-MacBook:~ depot_tools$gclient runhooks --force
6. 進入 trunk目錄,打開all.xcodeproj/