iOSプロジェクトgitignoreファイルにファイルタイプの解釈が含まれています

2905 ワード

ラベル(スペース区切り):iOS

iOSプロジェクトgitignoreファイルにファイルタイプの解釈が含まれています


gitignoreの内容
# 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
  • .DS_Store DS_Storeは、ファイルアイコンの配置位置など、このフォルダの表示プロパティを格納するために使用されます.削除後の副作用はこれらの情報の喪失である(もちろん、この副作用はあまり大きくない)https://www.zhihu.com/question/20345704
  • /build/私の理解では、プロジェクトのコンパイル中に生成されたファイルとデータ
  • *.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. ユーザーアイテムの好み設定、ウィンドウサイズ、ファイルブックマークなど
  • が格納されています.
  • !default.pbxuser   Xcode IDE 
    
  • *.mode 2 v 3 Xcode IDEプロファイル:window states and geometry,breakpoints,custom executables,etcウィンドウ状態、フォント、電源オフ、カスタム実行などを保存http://lists.apple.com/archives/xcode-users/2007/Oct/msg00465.htmlappブレークポイントが止まらない問題について
  • !default.mode2v3  mode2v3 
    
  • *.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.perspectivev 3デフォルトのperspectivev 3ファイルを保持
    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.DelivedData Xcodeキャッシュデータ
    12.idea/履歴、バージョン管理情報など、プロジェクトの構成情報を格納
    13 *.hmap鬼は何か知ってる