when committing or pull开发者_JAVA百科ing I frequently get an error whith the file UserInterfaceState.xcuserstate which resides in the project folder. 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. 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. You only need to commit the project.pbxproj part of the project.
精彩评论