I have a .gitignore file in MyProject.xcodeproj which ignores the xcuserdata, but the directory is not ignored in my MyProject.xcworkspace and I can't figure out how to do it there? Any suggestions?
Make sure the content of that folder is not already tracked:
git rm --cached [project].xcodeproj/project.xcworkspace/xcuserdata/*
git commit -m "Removed previously track xcuserdata content"
Then your .gitignore
would apply automatically.