XCode 去除 UserInterfaceState.xcuserstate 文件困扰

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.xcuserstate 文件困扰)