Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 7: ignore .xcscmblueprint in repository?

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.

like image 299
zavié Avatar asked Jul 23 '15 10:07

zavié


3 Answers

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

like image 148
Ewan Mellor Avatar answered Nov 01 '22 02:11

Ewan Mellor


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.

like image 5
lynulzy Avatar answered Nov 01 '22 01:11

lynulzy


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.

like image 1
user1427799 Avatar answered Nov 01 '22 03:11

user1427799