I am creating a static library for sharing between several iOS projects, and I want to use gcov (or any code coverage analysis tool) to tell me where I am missing my tests. However, when I turn on gcov, following these directions: http://supermegaultragroovy.com/blog/2005/11/03/unit-testing-and-code-coverage-with-xcode/
I get this error from Libtool:
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool: can't locate file for: -lgcov /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool: file: -lgcov is not an object file (not allowed in a library)
For some reason, Xcode4 cannot find the libgcov.a file. This is in many places in my system, but for some reason it cannot be found. I'm new to Xcode and gcc based on programming in general, so I'm not sure how I can fix this, I assume I just have to tell him specifically where to find libgcov.a, but I'm not sure how to do this.
source share