Setting up gcov in Xcode 3.1

Posted by Algorithmic on Stack Overflow See other posts from Stack Overflow or by Algorithmic
Published on 2009-10-16T09:25:29Z Indexed on 2010/06/07 16:22 UTC
Read the original article Hit count: 368

Filed under:
|
|
|

I'm trying to setup my Xcode project to be instrumented with gcov so I can determine the code coverage of my unit tests. All of the documentation I find online talks about settings that I don't find in Xcode 3.1, though. An example:

To work with Coverstory, first you need to set up your target to work with gcov. This requires turning on "Instrument Program Flow", "Generate Test Coverage Files" and linking with the gcov library. (Using Coverstory)

The closest thing I can find to "Instrument Program Flow" and "Generate Test Coverage Files" in my build settings is "Generate Profiling Code", which doesn't appear to do what I want it to do.

Am I looking in the wrong place for these settings or are all of the examples I'm finding online stale?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode