开发者

UserInterfaceState file of Xcode4 gives trouble with Git and Subversion

开发者 https://www.devze.com 2023-03-26 12:53 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消