With Xcode 7 finally released I was wondering what an appropriate setting for .gitignore
was for Xcode projects in the new version, and whether the same settings that were applicable in XCODE 6 still apply.
NOTE This is XCODE 7 Specific. There are various answers for other version of XCODE but I am unaware if 7 adds any new files or types that should be added to the .gitignore.
Here's the one I tend to use:
.DS_Store
build
*.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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With