Advertisement
Guest User

Untitled

a guest
Nov 29th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. #########################
  2. # .gitignore file for Xcode 7 Source Projects
  3. # can be used for iOS, OSX, Swift development
  4. #
  5. # October 2015
  6. #
  7. #
  8. #####
  9. # OS X temporary files that should never be committed
  10. #
  11. # c.f. http://www.westwind.com/reference/os-x/invisibles.html
  12.  
  13. .DS_Store
  14.  
  15. # c.f. http://www.westwind.com/reference/os-x/invisibles.html
  16.  
  17. .Trashes
  18.  
  19. # c.f. http://www.westwind.com/reference/os-x/invisibles.html
  20.  
  21. *.swp
  22.  
  23.  
  24. ####
  25. # Xcode temporary files that should never be committed
  26. #
  27. # NB: NIB/XIB files still exist even on Storyboard projects, so we want this...
  28.  
  29. *~.nib
  30.  
  31.  
  32. ####
  33. # Xcode build files -
  34. #
  35. # NB: slash on the end, so we only remove the FOLDER, not any files that were badly named "DerivedData"
  36.  
  37. DerivedData/
  38.  
  39. # NB: slash on the end, so we only remove the FOLDER, not any files that were badly named "build"
  40.  
  41. build/
  42.  
  43.  
  44. #####
  45. # Xcode private settings (window sizes, bookmarks, breakpoints, custom executables, smart groups)
  46. #
  47. # This is complicated:
  48. #
  49. # SOMETIMES you need to put this file in version control.
  50. # Apple designed it poorly - if you use "custom executables", they are
  51. # saved in this file.
  52. # 99% of projects do NOT use those, so they do NOT want to version control this file.
  53. # ..but if you're in the 1%, comment out the line "*.pbxuser"
  54.  
  55. # .pbxuser: http://lists.apple.com/archives/xcode-users/2004/Jan/msg00193.html
  56.  
  57. *.pbxuser
  58.  
  59. # .mode1v3: http://lists.apple.com/archives/xcode-users/2007/Oct/msg00465.html
  60.  
  61. *.mode1v3
  62.  
  63. # .mode2v3: http://lists.apple.com/archives/xcode-users/2007/Oct/msg00465.html
  64.  
  65. *.mode2v3
  66.  
  67. # .perspectivev3: http://stackoverflow.com/questions/5223297/xcode-projects-what-is-a-perspectivev3-file
  68.  
  69. *.perspectivev3
  70.  
  71. # NB: also, whitelist the default ones, some projects need to use these
  72. !default.pbxuser
  73. !default.mode1v3
  74. !default.mode2v3
  75. !default.perspectivev3
  76.  
  77.  
  78. ####
  79. # Xcode 4 - semi-personal settings
  80. #
  81. # Apple Shared data that Apple put in the wrong folder
  82. # c.f. http://stackoverflow.com/a/19260712/153422
  83. # FROM ANSWER: Apple says "don't ignore it"
  84. # 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
  85. # Up to you, but ... current advice: ignore it.
  86. *.xccheckout
  87.  
  88. #
  89. #
  90. # OPTION 1: ---------------------------------
  91. # throw away ALL personal settings (including custom schemes!
  92. # - unless they are "shared")
  93. # As per build/ and DerivedData/, this ought to have a trailing slash
  94. #
  95. # NB: this is exclusive with OPTION 2 below
  96. xcuserdata/
  97.  
  98. # OPTION 2: ---------------------------------
  99. # get rid of ALL personal settings, but KEEP SOME OF THEM
  100. # - NB: you must manually uncomment the bits you want to keep
  101. #
  102. # NB: this *requires* git v1.8.2 or above; you may need to upgrade to latest OS X,
  103. # or manually install git over the top of the OS X version
  104. # NB: this is exclusive with OPTION 1 above
  105. #
  106. #xcuserdata/**/*
  107.  
  108. # (requires option 2 above): Personal Schemes
  109. #
  110. #!xcuserdata/**/xcschemes/*
  111.  
  112. ####
  113. # XCode 4 workspaces - more detailed
  114. #
  115. # Workspaces are important! They are a core feature of Xcode - don't exclude them :)
  116. #
  117. # Workspace layout is quite spammy. For reference:
  118. #
  119. # /(root)/
  120. # /(project-name).xcodeproj/
  121. # project.pbxproj
  122. # /project.xcworkspace/
  123. # contents.xcworkspacedata
  124. # /xcuserdata/
  125. # /(your name)/xcuserdatad/
  126. # UserInterfaceState.xcuserstate
  127. # /xcshareddata/
  128. # /xcschemes/
  129. # (shared scheme name).xcscheme
  130. # /xcuserdata/
  131. # /(your name)/xcuserdatad/
  132. # (private scheme).xcscheme
  133. # xcschememanagement.plist
  134. #
  135. #
  136.  
  137. ####
  138. # Xcode 4 - Deprecated classes
  139. #
  140. # Allegedly, if you manually "deprecate" your classes, they get moved here.
  141. #
  142. # We're using source-control, so this is a "feature" that we do not want!
  143.  
  144. *.moved-aside
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement