git UserInterfaceState.xcuserstate 冲突

图片发自简书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"

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。