프로그래밍/git

UserInterfaceState.xcuserstate 변경사항이 계속 뜰 때

turu 2021. 9. 7. 21:24

문제 상황

Xcode에서 파일만 훑어보기만해도 UserInterfaceState.xcuserstate 파일의 변경사항이 계속 뜨는 문제

 

 

아마 변경사항이 있고 커밋하지 않는 상태인 feature브랜치에서 main브랜치로 rebase를, 그러니까

git rebase main

git checkout main

git rebase feature

이런순으로 하다가 발생한 것 같았는데 정확히 상황은 모르겠음

 

gitignore에 추가해도 계속 변경사항이 뜨고 있었음

 

해결 방법

git rm --cached [Project Name].xcworkspace/xcuserdata/[User Name].xcuserdatad/UserInterfaceState.xcuserstate

git commit -m 'Removed file that shouldnt be tracked'

 

터미널에서 위 두 명령어를 입력하니 해결됨

 

 

 

 

 

https://stackoverflow.com/questions/6564257/cant-ignore-userinterfacestate-xcuserstate

 

Can't ignore UserInterfaceState.xcuserstate

I'm using Git for Xcode 4 project version control. I've explicitly added ProjectFolder.xcodeproj/project.xcworkspace/xcuserdata/myUserName.xcuserdatad/UserInterfaceState.xcuserstate to .gitignore,...

stackoverflow.com

 

반응형