Xcode 7: ignore .xcscmblueprint in repository?

笑着哭i 提交于 2019-12-03 07:20:55

问题


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 the ignore list of the repository, or should it be checked in into repository?

Xcode 6 has the .xccheckout file, I've always gitignore'd that file.


回答1:


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




回答2:


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.




回答3:


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.



来源:https://stackoverflow.com/questions/31584297/xcode-7-ignore-xcscmblueprint-in-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!