iOS 項目gitignore文件中包含文件類型解釋

標簽(空格分隔): iOS


iOS 項目gitignore文件中包含文件類型解釋


gitignore中的內(nèi)容

# Xcode
.DS_Store
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
profile
*.moved-aside
DerivedData
.idea/
*.hmap
*.xccheckout
*.xcworkspace
!default.xcworkspace

#CocoaPods
Pods
!Podfile
!Podfile.lock

  1. .DS_Store DS_Store 是用來存儲這個文件夾的顯示屬性的:比如文件圖標的擺放位置刀诬。刪除以后的副作用就是這些信息的失去 (當然涨冀,這點副作用其實不是太大)https://www.zhihu.com/question/20345704

  2. /build/ 我的理解是琅摩,項目編譯過程中產(chǎn)生的文件和數(shù)據(jù)

  3. *.pbxuser
    http://lists.apple.com/archives/xcode-users/2004/Jan/msg00193.html
    It stores the user's preferences for the project, e.g. window sizes, active build style, file bookmarks, and a few other things.
    儲存了用戶項目偏好設(shè)置,窗口大小血巍,文件書簽等

  4. !default.pbxuser  保留默認的Xcode IDE配置文件
    
  5. *.mode2v3 Xcode IDE配置文件 :window states and geometry, breakpoints, custom executables, etc 保存了窗口狀態(tài)株婴,字體溺欧,斷電,自定義執(zhí)行等
    http://lists.apple.com/archives/xcode-users/2007/Oct/msg00465.html
    關(guān)于app斷點不停的問題

  6. !default.mode2v3 保留默認的mode2v3文件
    
  7. *.perspectivev3
    ```
    This is the file where XCode saves the preferences of your "perspective". Where you windows are, if your console is open, where it is on the screen.
    Which groups are open in the side bar etc.
    Basically everything you need that xcode looks the same when you open it next time.
    
    There is another file name username.pbxuser. Xcode stores for example the code bookmarks in it.
    
    You don't need them to compile the project. And you should not put them into version control either.
    ```
    [Xcode projects — what is a “perspectivev3 file”](http://stackoverflow.com/questions/5223297/xcode-projects-what-is-a-perspectivev3-file)
    

8.!default.perspectivev3 保留默認的perspectivev3文件

9.xcuserdata

   project.xcworkspace說明:is a directory of files describing the workspace or projects. Although some of the answers here indicate it is unnecessary and should be ignored for source control, I don't agree, but it's going to be highly dependent upon how you use your environment. Generally, the contents of the project.xcworkspace directory contains the contents.xcworkspace data file, which lists the projects that are included as top-level entities in your project茴丰。

   xcuserdata說明:You can safely delete the xcuserdata directories. It basically contains personal settings like breakpoints, user interface layout, open files, automatic snapshots configuration and so on达皿。
   [iOS xcuserdata](http://www.cnblogs.com/wfwenchao/p/4624025.html)

10.*.moved-aside 鬼知道這是什么東西

11.DerivedData Xcode緩存數(shù)據(jù)

12.idea/ 存放項目的配置信息,包括歷史記錄贿肩,版本控制信息等

13 *.hmap 鬼知道是什么


最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末峦椰,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子汰规,更是在濱河造成了極大的恐慌汤功,老刑警劉巖,帶你破解...
    沈念sama閱讀 222,865評論 6 518
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件溜哮,死亡現(xiàn)場離奇詭異滔金,居然都是意外死亡,警方通過查閱死者的電腦和手機茂嗓,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 95,296評論 3 399
  • 文/潘曉璐 我一進店門餐茵,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人述吸,你說我怎么就攤上這事忿族。” “怎么了蝌矛?”我有些...
    開封第一講書人閱讀 169,631評論 0 364
  • 文/不壞的土叔 我叫張陵道批,是天一觀的道長。 經(jīng)常有香客問我入撒,道長隆豹,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 60,199評論 1 300
  • 正文 為了忘掉前任衅金,我火速辦了婚禮噪伊,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘氮唯。我一直安慰自己,他們只是感情好姨伟,可當我...
    茶點故事閱讀 69,196評論 6 398
  • 文/花漫 我一把揭開白布惩琉。 她就那樣靜靜地躺著,像睡著了一般夺荒。 火紅的嫁衣襯著肌膚如雪瞒渠。 梳的紋絲不亂的頭發(fā)上良蒸,一...
    開封第一講書人閱讀 52,793評論 1 314
  • 那天,我揣著相機與錄音伍玖,去河邊找鬼嫩痰。 笑死,一個胖子當著我的面吹牛窍箍,可吹牛的內(nèi)容都是我干的串纺。 我是一名探鬼主播,決...
    沈念sama閱讀 41,221評論 3 423
  • 文/蒼蘭香墨 我猛地睜開眼椰棘,長吁一口氣:“原來是場噩夢啊……” “哼纺棺!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起邪狞,我...
    開封第一講書人閱讀 40,174評論 0 277
  • 序言:老撾萬榮一對情侶失蹤祷蝌,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后帆卓,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體巨朦,經(jīng)...
    沈念sama閱讀 46,699評論 1 320
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 38,770評論 3 343
  • 正文 我和宋清朗相戀三年剑令,在試婚紗的時候發(fā)現(xiàn)自己被綠了罪郊。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 40,918評論 1 353
  • 序言:一個原本活蹦亂跳的男人離奇死亡尚洽,死狀恐怖悔橄,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情腺毫,我是刑警寧澤癣疟,帶...
    沈念sama閱讀 36,573評論 5 351
  • 正文 年R本政府宣布,位于F島的核電站潮酒,受9級特大地震影響睛挚,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜急黎,卻給世界環(huán)境...
    茶點故事閱讀 42,255評論 3 336
  • 文/蒙蒙 一扎狱、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧勃教,春花似錦淤击、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,749評論 0 25
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至,卻和暖如春印机,著一層夾襖步出監(jiān)牢的瞬間矢腻,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,862評論 1 274
  • 我被黑心中介騙來泰國打工射赛, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留多柑,地道東北人。 一個月前我還...
    沈念sama閱讀 49,364評論 3 379
  • 正文 我出身青樓楣责,卻偏偏與公主長得像竣灌,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子腐魂,可洞房花燭夜當晚...
    茶點故事閱讀 45,926評論 2 361

推薦閱讀更多精彩內(nèi)容