How to permanently remove xcuserdata under the project.xcworkspace and resolve uncommitted changes
Posted
by
JeffB6688
on Stack Overflow
See other posts from Stack Overflow
or by JeffB6688
Published on 2012-12-15T17:01:37Z
Indexed on
2012/12/15
17:03 UTC
Read the original article
Hit count: 460
I am struggling with a problem with a merge conflict (see Cannot Merge due to conflict with UserInterfaceState.xcuserstate). Based on feedback, I needed to remove the UserInterfaceState.xcuserstate using git rm.
After considerable experimentation, I was able to remove the file with "git rm -rf project.xcworkspace/xcuserdata". So while I was on the branch I was working on, it almost immediately came back as a file that needed to be committed. So I did the git rm on the file again and just switched back to the master. Then I performed a git rm on the file again. The operation again removed the file.
But I am still stuck. If I try to merge the branch into the master branch, it again says that I have uncommitted changes. So I go to commit the change. But this time, it shows UserInterfaceState.xcuserstate as the file to commit, but the box is unchecked and it can't be checked. So I can't move forward. Is there a way to use 'git rm' to permanently remove xcuserdata under the project.xcworkspace?
Help!! Any ideas?
© Stack Overflow or respective owner