美文网首页
XCode 去除 UserInterfaceState.xcu

XCode 去除 UserInterfaceState.xcu

作者: faceowener | 来源:发表于2016-11-24 10:53 被阅读0次

1、进入终端执行命令,vi .gitignore_global
2、copy 如下文件夹:(直接copy)
.DS_Store
*.xcuserstate
project.xcworkspace
xcuserdata
UserInterfaceState.xcuserstate
project.xcworkspace/
xcuserdata/
UserInterface.xcuserstate
3、保存退出
4、执行命令:(直接copy)
git rm --cached ProjectFolder.xcodeproj/project.xcworkspace/xcuserdata/myUserName.xcuserdatad/UserInterfaceState.xcuserstate
git commit -m "Removed file that shouldn't be tracked"
git push
5、搞定!
注意:myUserName.xcuserdatad,是你自己的userNme,不要弄错了。

相关文章

网友评论

      本文标题: XCode 去除 UserInterfaceState.xcu

      本文链接:https://www.haomeiwen.com/subject/lwjbpttx.html