.gitignore 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. #########################
  2. # .gitignore file for Xcode4 and Xcode5 Source projects
  3. #
  4. # Apple bugs, waiting for Apple to fix/respond:
  5. #
  6. # 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
  7. #
  8. # Version 2.6
  9. # For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
  10. #
  11. # 2015 updates:
  12. # - Fixed typo in "xccheckout" line - thanks to @lyck for pointing it out!
  13. # - Fixed the .idea optional ignore. Thanks to @hashier for pointing this out
  14. # - Finally added "xccheckout" to the ignore. Apple still refuses to answer support requests about this, but in practice it seems you should ignore it.
  15. # - minor tweaks from Jona and Coeur (slightly more precise xc* filtering/names)
  16. # 2014 updates:
  17. # - appended non-standard items DISABLED by default (uncomment if you use those tools)
  18. # - removed the edit that an SO.com moderator made without bothering to ask me
  19. # - researched CocoaPods .lock more carefully, thanks to Gokhan Celiker
  20. # 2013 updates:
  21. # - fixed the broken "save personal Schemes"
  22. # - added line-by-line explanations for EVERYTHING (some were missing)
  23. #
  24. # NB: if you are storing "built" products, this WILL NOT WORK,
  25. # and you should use a different .gitignore (or none at all)
  26. # This file is for SOURCE projects, where there are many extra
  27. # files that we want to exclude
  28. #
  29. #########################
  30. #####
  31. # OS X temporary files that should never be committed
  32. #
  33. # c.f. http://www.westwind.com/reference/os-x/invisibles.html
  34. .DS_Store
  35. # c.f. http://www.westwind.com/reference/os-x/invisibles.html
  36. .Trashes
  37. # c.f. http://www.westwind.com/reference/os-x/invisibles.html
  38. *.swp
  39. #
  40. # *.lock - this is used and abused by many editors for many different things.
  41. # For the main ones I use (e.g. Eclipse), it should be excluded
  42. # from source-control, but YMMV.
  43. # (lock files are usually local-only file-synchronization on the local FS that should NOT go in git)
  44. # c.f. the "OPTIONAL" section at bottom though, for tool-specific variations!
  45. #
  46. # In particular, if you're using CocoaPods, you'll want to comment-out this line:
  47. *.lock
  48. #
  49. # profile - REMOVED temporarily (on double-checking, I can't find it in OS X docs?)
  50. #profile
  51. ####
  52. # Xcode temporary files that should never be committed
  53. #
  54. # NB: NIB/XIB files still exist even on Storyboard projects, so we want this...
  55. *~.nib
  56. ####
  57. # Xcode build files -
  58. #
  59. # NB: slash on the end, so we only remove the FOLDER, not any files that were badly named "DerivedData"
  60. DerivedData/
  61. # NB: slash on the end, so we only remove the FOLDER, not any files that were badly named "build"
  62. build/
  63. #####
  64. # Xcode private settings (window sizes, bookmarks, breakpoints, custom executables, smart groups)
  65. #
  66. # This is complicated:
  67. #
  68. # SOMETIMES you need to put this file in version control.
  69. # Apple designed it poorly - if you use "custom executables", they are
  70. # saved in this file.
  71. # 99% of projects do NOT use those, so they do NOT want to version control this file.
  72. # ..but if you're in the 1%, comment out the line "*.pbxuser"
  73. # .pbxuser: http://lists.apple.com/archives/xcode-users/2004/Jan/msg00193.html
  74. *.pbxuser
  75. # .mode1v3: http://lists.apple.com/archives/xcode-users/2007/Oct/msg00465.html
  76. *.mode1v3
  77. # .mode2v3: http://lists.apple.com/archives/xcode-users/2007/Oct/msg00465.html
  78. *.mode2v3
  79. # .perspectivev3: http://stackoverflow.com/questions/5223297/xcode-projects-what-is-a-perspectivev3-file
  80. *.perspectivev3
  81. # NB: also, whitelist the default ones, some projects need to use these
  82. !default.pbxuser
  83. !default.mode1v3
  84. !default.mode2v3
  85. !default.perspectivev3
  86. ####
  87. # Xcode 4 - semi-personal settings
  88. #
  89. # Apple Shared data that Apple put in the wrong folder
  90. # c.f. http://stackoverflow.com/a/19260712/153422
  91. # FROM ANSWER: Apple says "don't ignore it"
  92. # FROM COMMENTS: Apple is wrong; Apple code is too buggy to trust; there are no known negative side-effects to ignoring Apple's unofficial advice and instead doing the thing that actively fixes bugs in Xcode
  93. # Up to you, but ... current advice: ignore it.
  94. *.xccheckout
  95. #
  96. #
  97. # OPTION 1: ---------------------------------
  98. # throw away ALL personal settings (including custom schemes!
  99. # - unless they are "shared")
  100. # As per build/ and DerivedData/, this ought to have a trailing slash
  101. #
  102. # NB: this is exclusive with OPTION 2 below
  103. xcuserdata/
  104. # OPTION 2: ---------------------------------
  105. # get rid of ALL personal settings, but KEEP SOME OF THEM
  106. # - NB: you must manually uncomment the bits you want to keep
  107. #
  108. # NB: this *requires* git v1.8.2 or above; you may need to upgrade to latest OS X,
  109. # or manually install git over the top of the OS X version
  110. # NB: this is exclusive with OPTION 1 above
  111. #
  112. #xcuserdata/**/*
  113. # (requires option 2 above): Personal Schemes
  114. #
  115. #!xcuserdata/**/xcschemes/*
  116. ####
  117. # Xcode 4 workspaces - more detailed
  118. #
  119. # Workspaces are important! They are a core feature of Xcode - don't exclude them :)
  120. #
  121. # Workspace layout is quite spammy. For reference:
  122. #
  123. # /(root)/
  124. # /(project-name).xcodeproj/
  125. # project.pbxproj
  126. # /project.xcworkspace/
  127. # contents.xcworkspacedata
  128. # /xcuserdata/
  129. # /(your name)/xcuserdatad/
  130. # UserInterfaceState.xcuserstate
  131. # /xcshareddata/
  132. # /xcschemes/
  133. # (shared scheme name).xcscheme
  134. # /xcuserdata/
  135. # /(your name)/xcuserdatad/
  136. # (private scheme).xcscheme
  137. # xcschememanagement.plist
  138. #
  139. #
  140. ####
  141. # Xcode 4 - Deprecated classes
  142. #
  143. # Allegedly, if you manually "deprecate" your classes, they get moved here.
  144. #
  145. # We're using source-control, so this is a "feature" that we do not want!
  146. *.moved-aside
  147. ####
  148. # OPTIONAL: Some well-known tools that people use side-by-side with Xcode / iOS development
  149. #
  150. # NB: I'd rather not include these here, but gitignore's design is weak and doesn't allow
  151. # modular gitignore: you have to put EVERYTHING in one file.
  152. #
  153. # COCOAPODS:
  154. #
  155. # c.f. http://guides.cocoapods.org/using/using-cocoapods.html#what-is-a-podfilelock
  156. # c.f. http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
  157. #
  158. #!Podfile.lock
  159. #
  160. # RUBY:
  161. #
  162. # c.f. http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/
  163. #
  164. #!Gemfile.lock
  165. #
  166. # IDEA:
  167. #
  168. # c.f. https://www.jetbrains.com/objc/help/managing-projects-under-version-control.html?search=workspace.xml
  169. #
  170. #.idea/workspace.xml
  171. #
  172. # TEXTMATE:
  173. #
  174. # -- UNVERIFIED: c.f. http://stackoverflow.com/a/50283/153422
  175. #
  176. #tm_build_errors
  177. ####
  178. # UNKNOWN: recommended by others, but I can't discover what these files are
  179. #