|
| 1 | +######################### |
| 2 | +# .gitignore file for Xcode5 / OS X Source projects |
| 3 | +# |
| 4 | +# Version 2.1 |
| 5 | +# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects |
| 6 | +# |
| 7 | +# 2013 updates: |
| 8 | +# - fixed the broken "save personal Schemes" |
| 9 | +# - added line-by-line explanations for EVERYTHING (some were missing) |
| 10 | +# |
| 11 | +# NB: if you are storing "built" products, this WILL NOT WORK, |
| 12 | +# and you should use a different .gitignore (or none at all) |
| 13 | +# This file is for SOURCE projects, where there are many extra |
| 14 | +# files that we want to exclude |
| 15 | +# |
| 16 | +######################### |
| 17 | + |
| 18 | +##### |
| 19 | +# OS X temporary files that should never be committed |
| 20 | +# |
| 21 | +# c.f. http://www.westwind.com/reference/os-x/invisibles.html |
| 22 | + |
| 23 | +.DS_Store |
| 24 | + |
| 25 | +# c.f. http://www.westwind.com/reference/os-x/invisibles.html |
| 26 | + |
| 27 | +.Trashes |
| 28 | + |
| 29 | +# c.f. http://www.westwind.com/reference/os-x/invisibles.html |
| 30 | + |
| 31 | +*.swp |
| 32 | + |
| 33 | +# *.lock - this is used and abused by many editors for many different things. |
| 34 | +# For the main ones I use (e.g. Eclipse), it should be excluded |
| 35 | +# from source-control, but YMMV |
| 36 | + |
| 37 | +*.lock |
| 38 | + |
| 39 | +# |
| 40 | +# profile - REMOVED temporarily (on double-checking, this seems incorrect; I can't find it in OS X docs?) |
| 41 | +#profile |
| 42 | + |
| 43 | + |
| 44 | +#### |
| 45 | +# Xcode temporary files that should never be committed |
| 46 | +# |
| 47 | +# NB: NIB/XIB files still exist even on Storyboard projects, so we want this... |
| 48 | + |
| 49 | +*~.nib |
| 50 | + |
| 51 | + |
| 52 | +#### |
| 53 | +# Xcode build files - |
| 54 | +# |
| 55 | +# NB: slash on the end, so we only remove the FOLDER, not any files that were badly named "DerivedData" |
| 56 | + |
| 57 | +DerivedData/ |
| 58 | + |
| 59 | +# NB: slash on the end, so we only remove the FOLDER, not any files that were badly named "build" |
| 60 | + |
| 61 | +build/ |
| 62 | + |
| 63 | + |
| 64 | +##### |
| 65 | +# Xcode private settings (window sizes, bookmarks, breakpoints, custom executables, smart groups) |
| 66 | +# |
| 67 | +# This is complicated: |
| 68 | +# |
| 69 | +# SOMETIMES you need to put this file in version control. |
| 70 | +# Apple designed it poorly - if you use "custom executables", they are |
| 71 | +# saved in this file. |
| 72 | +# 99% of projects do NOT use those, so they do NOT want to version control this file. |
| 73 | +# ..but if you're in the 1%, comment out the line "*.pbxuser" |
| 74 | + |
| 75 | +# .pbxuser: http://lists.apple.com/archives/xcode-users/2004/Jan/msg00193.html |
| 76 | + |
| 77 | +*.pbxuser |
| 78 | + |
| 79 | +# .mode1v3: http://lists.apple.com/archives/xcode-users/2007/Oct/msg00465.html |
| 80 | + |
| 81 | +*.mode1v3 |
| 82 | + |
| 83 | +# .mode2v3: http://lists.apple.com/archives/xcode-users/2007/Oct/msg00465.html |
| 84 | + |
| 85 | +*.mode2v3 |
| 86 | + |
| 87 | +# .perspectivev3: http://stackoverflow.com/questions/5223297/xcode-projects-what-is-a-perspectivev3-file |
| 88 | + |
| 89 | +*.perspectivev3 |
| 90 | + |
| 91 | +# NB: also, whitelist the default ones, some projects need to use these |
| 92 | +!default.pbxuser |
| 93 | +!default.mode1v3 |
| 94 | +!default.mode2v3 |
| 95 | +!default.perspectivev3 |
| 96 | + |
| 97 | + |
| 98 | +#### |
| 99 | +# Xcode 4 - semi-personal settings |
| 100 | +# |
| 101 | +# |
| 102 | +# OPTION 1: --------------------------------- |
| 103 | +# throw away ALL personal settings (including custom schemes! |
| 104 | +# - unless they are "shared") |
| 105 | +# |
| 106 | +# NB: this is exclusive with OPTION 2 below |
| 107 | +xcuserdata |
| 108 | + |
| 109 | +# OPTION 2: --------------------------------- |
| 110 | +# get rid of ALL personal settings, but KEEP SOME OF THEM |
| 111 | +# - NB: you must manually uncomment the bits you want to keep |
| 112 | +# |
| 113 | +# NB: this *requires* git v1.8.2 or above; you may need to upgrade to latest OS X, |
| 114 | +# or manually install git over the top of the OS X version |
| 115 | +# NB: this is exclusive with OPTION 1 above |
| 116 | +# |
| 117 | +#xcuserdata/**/* |
| 118 | + |
| 119 | +# (requires option 2 above): Personal Schemes |
| 120 | +# |
| 121 | +#!xcuserdata/**/xcschemes/* |
| 122 | + |
| 123 | +#### |
| 124 | +# XCode 4 workspaces - more detailed |
| 125 | +# |
| 126 | +# Workspaces are important! They are a core feature of Xcode - don't exclude them :) |
| 127 | +# |
| 128 | +# Workspace layout is quite spammy. For reference: |
| 129 | +# |
| 130 | +# /(root)/ |
| 131 | +# /(project-name).xcodeproj/ |
| 132 | +# project.pbxproj |
| 133 | +# /project.xcworkspace/ |
| 134 | +# contents.xcworkspacedata |
| 135 | +# /xcuserdata/ |
| 136 | +# /(your name)/xcuserdatad/ |
| 137 | +# UserInterfaceState.xcuserstate |
| 138 | +# /xcsshareddata/ |
| 139 | +# /xcschemes/ |
| 140 | +# (shared scheme name).xcscheme |
| 141 | +# /xcuserdata/ |
| 142 | +# /(your name)/xcuserdatad/ |
| 143 | +# (private scheme).xcscheme |
| 144 | +# xcschememanagement.plist |
| 145 | +# |
| 146 | +# |
| 147 | + |
| 148 | +#### |
| 149 | +# Xcode 4 - Deprecated classes |
| 150 | +# |
| 151 | +# Allegedly, if you manually "deprecate" your classes, they get moved here. |
| 152 | +# |
| 153 | +# We're using source-control, so this is a "feature" that we do not want! |
| 154 | + |
| 155 | +*.moved-aside |
| 156 | + |
| 157 | +#### |
| 158 | +# UNKNOWN: recommended by others, but I can't discover what these files are |
| 159 | +# |
| 160 | +# ...none. Everything is now explained. |
| 161 | + |
| 162 | +Pods/ |
| 163 | +*.a |
0 commit comments