Should I ignore foo.xcodeproj / xcuserdata in the git repository?

Using Xcode 6.1 beta 2, I created a new CLI application using Swift. Nothing changed, I noticed dirty files in 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 
+6
source share
1 answer

Yes, ignore it. This data applies only to you. Others will not want this, or anything else in xcuserdata .

You can simply use the GitHub Objective-C .gitignore file , which is well understood.

+4
source

Source: https://habr.com/ru/post/975457/


All Articles