This is my gitignore file:
# Xcode
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
*.xcuserstate
project.xcworkspace/
xcuserdata/
However, it still detects changes here:
BW.xcodeproj/project.xcworkspace/xcuserdata/cooluser.xcuserdatad/UserInterfaceState.xcuserstate
This is on XCode 6.
What am I doing wrong?
Thanks!
Files in xcuserdata are non-shared scheme data and UI configuration (e.g. UserInterfaceState. xcuserstate ). They are non-shared in that they belong to a user. Those settings are only read when you are the user.
The file BW.xcodeproj/project.xcworkspace/[...]/UserInterfaceState.xcuserstate
must already be tracked by git.
When you add an entry to .gitignore
it only affects untracked files. If they are already tracked, they are not automatically removed from the repository.
You can remove this file manually with: git rm --cached BW.xcodeproj/project.xcworkspace
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