Reputation: 85352
Using Xcode 6.1 beta 2, I created a new CLI app using Swift. With nothing changed, I noticed dirty files under the Xcode project directory:
$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# letitsinkin.xcodeproj/xcuserdata/
nothing added to commit but untracked files present (use "git add" to track)
Should I ignore 'xcuserdata' in .gitignore? So far, it contains two files:
letitsinkin.xcodeproj/xcuserdata/srid.xcuserdatad/xcschemes/letitsinkin.xcscheme
letitsinkin.xcodeproj/xcuserdata/srid.xcuserdatad/xcschemes/xcschememanagement.plist
Upvotes: 8
Views: 2374
Reputation: 66242
Yes, ignore it. This data is only applicable to you. Others won't want it, or anything else in xcuserdata
.
You may want to just use GitHub's Objective-C .gitignore
file, which is well-researched.
Upvotes: 7