[英]UserInterfaceState file of Xcode4 gives trouble with Git and Subversion
when committing or pulling I frequently get an error whith the file UserInterfaceState.xcuserstate which resides in the project folder. 提交或拉动时经常会出现一个错误,即文件UserInterfaceState.xcuserstate位于项目文件夹中。 I'm not sure for what the file is good for, does anyone know? 我不确定该文件有什么用处,有人知道吗?
Is it fine to just ignore it when committing? 提交时忽略它可以吗?
Thanks in advance 提前致谢
You should be using a Git ignore file for those files. 您应该为这些文件使用Git ignore文件。 Here is a sample that I use: 这是我使用的示例:
# Xcode
build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
*.xcworkspace
!default.xcworkspace
xcuserdata
profile
*.moved-aside
Yes, you can add those to your git/svn ignore settings. 是的,您可以将它们添加到您的git / svn忽略设置中。 You only need to commit the project.pbxproj part of the project. 您只需要提交项目的project.pbxproj部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.