Xcode 7: ignore .xcscmblueprint in repository?

前端 未结 3 1981
星月不相逢
星月不相逢 2021-02-02 05:14

I noticed that Xcode 7 creates a new .xcscmblueprint file in the xcshareddata folder. Will it be always auto generated? Should this file be added to th

相关标签:
3条回答
  • 2021-02-02 06:04

    I'm gitignoring them, for exactly the same reason as .xccheckout.

    GitHub's maintained .gitignore added that too, for both Objective-C and Swift. https://github.com/github/gitignore

    0 讨论(0)
  • 2021-02-02 06:05

    I think it depends. Just like @Ewan Mellor said the reason for ignore .xcscmblueprint is same with it for .xccheckout.

    But whether ignore .xccheckout depends on your project . If you are using single project there is no need. If you are using workspace committing xccheckout file is need. For more the answer @Chris Hanson published is feed your need.

    Back to the question. The content of the xcscmblueprint contains the main information about your project.

    And I'm not sure it will change in the future. As the same reason for xccheckout I would like to commit this file.

    0 讨论(0)
  • 2021-02-02 06:09

    The files seems to contain information pertaining to your source code repository. I think the "SCM" part of the filename stands for "Source Code Management". When looking at the one in my project, it indeed contains information about the GitHub repository that my XCode projects it (and also the git submodules that my repository uses, that's neat!). Of course, it also contains hashes so one could wonder if they are stable across developer, but I'd bet they are.

    For that reason, I back up the advice given in many comments. You DO want to version this file.

    0 讨论(0)
提交回复
热议问题