You may have already figured this out, but it was possible before Xcode7. We accomplished this by setting the flags "Program Workflow" and "Create Test Coverages" to "Yes" in your project, and then adding flash code somewhere inside your application to write coverage data files. This βflushingβ part actually records coverage data files that can later be used by other tools, such as gcovr or lcov, to get your coverage data. After you interact with the application, either manually or using automatic tests, coverage data will be recorded.
However, with Xcode7, it seems that coverage data is limited only to Xcode unit tests. I'm still trying to figure out if there is a way to collect coverage data by interacting with the application manually or using automated tests.
source share