1.git中取得項目的git倉庫
終端命令:$ git clone [url]
例如:$ git clonegit://github.com/schacon/grit.git
2.Xcode6以后工程中添加pch文件
第一步:Command+N,打開新建文件窗口:ios->other->PCH file,創建一個pch文件:“工程名-Prefix.pch”:
第二步:
? ? ? ? ? 2.1將Precompile Prefix Header為YES,預編譯后的pch文件會被緩存起來,可以提高編譯速度。
? ? ? ? ? 2.2將building setting中的precompile header選項的路徑添加“$(SRCROOT)/項目名稱/pch文件名”(例如:$(SRCROOT)/pictest/test.pch)
3.hosts修改方法
/private/etc
4.可復用且高度解耦的iOS用戶統計實現