Git忽略UserInterfaceState.xcuserstate文件
Git忽略UserInterfaceState.xcuserstate文件
新风作浪关于UserInterfaceState.xcuserstate文件
路径:ProjectFolder.xcodeproj/project.xcworkspace/xcuserdata/myUserName.xcuserdatad/UserInterfaceState.xcuserstate
每次打开工程,动一动Xcode UserInterfaceState.xcuserstate就会出现变动。
解决办法
因为我们团队使用SourceTree进行代码管理,选中UserInterfaceState.xcuserstate右键出现菜单,然后选中停止追踪
,然后进行commit。如果是对人协作开发,团队其他人员也需要执行相同操作。
还有其他解决方案,原理一样
git rm --cached ProjectFolder.xcodeproj/project.xcworkspace/xcuserdata/myUserName.xcuserdatad/UserInterfaceState.xcuserstate
git commit -m "Removed file that shouldn't be tracked"
原地址:http://stackoverflow.com/questions/6564257/cant-ignore-userinterfacestate-xcuserstate
评论
匿名评论隐私政策