图片发自简书App
在commit 或 meger 的时候一直会提示userinterfacestate.xcuserstate文件尚未commit.
遇到这个问题首先要确定两种解决办法:
第一种方法:
1. git rm --cached ***YourProjectFolderName***.xcodeproj/project.xcworkspace/xcuserdata/***yourUserName***.xcuserdatad/UserInterfaceState.xcuserstate
2. git commit -m "Removed file that shouldn't be tracked"
3. git clean -f -d
第二种办法(推荐使用):
1. git rm --cache */UserInterfaceState.xcuserstate
2. git commit -m "Never see you again, UserInterfaceState"