Xcode 7:忽略存储库中的 .xcscmblueprint?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31584297/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 7: ignore .xcscmblueprint in repository?
提问by zavié
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 7.xcscmblueprint
在xcshareddata
文件夹中创建了一个新文件。它会一直自动生成吗?该文件应该添加到存储库的忽略列表中,还是应该将其签入存储库?
Xcode 6 has the .xccheckout
file, I've always gitignore'd that file.
Xcode 6 有这个.xccheckout
文件,我一直忽略那个文件。
采纳答案by Ewan Mellor
I'm gitignoring them, for exactly the same reason as .xccheckout.
我正在忽略它们,原因与 .xccheckout 完全相同。
GitHub's maintained .gitignore added that too, for both Objective-C and Swift. https://github.com/github/gitignore
GitHub 维护的 .gitignore 也为 Objective-C 和 Swift 添加了这一点。 https://github.com/github/gitignore
回答by lynulzy
I think it depends. Just like @Ewan Mellor said the reason for ignore .xcscmblueprint
is same with it for .xccheckout
.
我认为这取决于。正如@Ewan Mellor 所说,忽略的原因.xcscmblueprint
与.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.
但是是否忽略.xccheckout
取决于您的项目。如果您使用的是单个项目,则不需要。如果您正在使用工作区,则需要提交 xccheckout 文件。有关更多信息,@Chris Hanson 发布的答案是满足您的需求。
Back to the question. The content of the xcscmblueprint
contains the main information about your project.
回到问题。的内容xcscmblueprint
包含有关您的项目的主要信息。
And I'm not sure it will change in the future. As the same reason for xccheckout
I would like to commit this file.
而且我不确定它将来会改变。出于同样的原因,xccheckout
我想提交此文件。
回答by user1427799
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.
这些文件似乎包含与您的源代码存储库有关的信息。我认为文件名的“SCM”部分代表“源代码管理”。在查看我的项目中的那个时,它确实包含有关我的 XCode 对其进行项目的 GitHub 存储库的信息(以及我的存储库使用的 git 子模块,这很简洁!)。当然,它也包含散列,所以人们可能想知道它们在开发人员中是否稳定,但我敢打赌它们是。
For that reason, I back up the advice given in many comments. You DO want to version this file.
出于这个原因,我支持许多评论中给出的建议。你确实想要版本这个文件。