What should be in my gitignore for Xcode 7 [duplicate]
Here's the one I tend to use:
.DS_Storebuild*.xcodeproj/*!*.xcodeproj/project.pbxproj
That will ignore .DS_Store
files, the build
directory, and everything in .xcodeproj
files except the file that actually contains the project's settings. If you have shared schemes, you can also add
!*.xcodeproj/xcshareddata
as show here.