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
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.
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