Home » Swift » What is ObjectiveC.gcno? Should it be included in source code repository?

What is ObjectiveC.gcno? Should it be included in source code repository?

Posted by: admin January 4, 2018 Leave a comment

Questions:

I recently updated to XCode7. And just noticed this new file ObjectiveC.gcno in my project’s root. My go-to source for gitignore files doesn’t have it ignored. https://github.com/github/gitignore

It seems to be some sort of build artifact, but not sure. Should it be ignored??

My project has both Objective-C and Swift code together.

Answers:

.GCNO files are files which are generated by Xcode in order to manage code coverage information.

You can read about it here in the Apple docs: Apple Documentation.
There is no problem to either ignore them or push them to your repository.