8

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 

1 Answer 1

7

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.

Sign up to request clarification or add additional context in comments.

1 Comment

what about the xcuderdata files located in the project.xcworkspace package within the .xcodeproj file

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.