Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What should be in my gitignore for Xcode 7 [duplicate]

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.

like image 275
Jeef Avatar asked Jul 31 '15 17:07

Jeef


1 Answers

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.

like image 196
mipadi Avatar answered Sep 19 '22 02:09

mipadi