I'm working in a Xcode project, and I'm trying to configure the .gitignore to not get anything inside the xcuserdata folder.
I have the following .gitignore:
# Xcode
.DS_Store
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
profile
*.moved-aside
DerivedData
.idea/
*.hmap
xcuserdata/*
but every time that I build/run the project and execute git status
, it still shows the following midified file:
modified: MyProject.xcodeproj/project.xcworkspace/xcuserdata/fernando.xcuserdatad/UserInterfaceState.xcuserstate
Does anybody have any idea what's wrong?
I found the solution
the problem was not in the .gitignore file
the problem was the UserInterfaceState.xcuserstate that was not removed from git server, found the solution in the following link: