Xcode 7: ignore .xcscmblueprint in repository?

XcodeRepositoryGitignoreXcode7

Xcode Problem Overview


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.

Xcode Solutions


Solution 1 - Xcode

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

Solution 2 - Xcode

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.

Solution 3 - Xcode

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionzaviéView Question on Stackoverflow
Solution 1 - XcodeEwan MellorView Answer on Stackoverflow
Solution 2 - XcodelynulzyView Answer on Stackoverflow
Solution 3 - Xcodeuser1427799View Answer on Stackoverflow