Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.gitignore for everything inside the xcuserdata folder does not ignore an xcuserstate file

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?

like image 236
Fernando Avatar asked Mar 26 '13 19:03

Fernando


1 Answers

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:

Can't ignore UserInterfaceState.xcuserstate

like image 199
Fernando Avatar answered Sep 22 '22 11:09

Fernando