New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XCode 7 is not supported #40
Comments
Xcode 7 generates coverage in a different file format. |
the same issue. |
1 similar comment
the same issue. |
the same issue |
How are things with the lcov update, as of 77afcfc? |
Jon, Pulling from master, it looks like it is almost back. I had to make the lcov scripts executable and then added It looks like the The consensus after a couple of searches on how to solve the Also, thanks for your hard work on the project. You are fighting the good fight. Michael |
Hi Michael - where did you get get_version.sh from? Also, I'm getting problems. I generate env.sh from within XCode, seemingly ok, then call getcov which starts a scan for GCDA files from the root /. Weird. |
@bixbarton You can get I have not seen the root scan issue that you describe. |
Thanks Michael, I put that file in place and things run smoother. The root scan issue was my mistake, not setting the environment variables correctly. Only issue I have now is that Xcode 7 isn't generating any GCDA files for this project. Utterly bizarre. Code Coverage is on, Legacy is on. |
Ok, so the reason I'm not generating GCDA files is that INSTRUMENT_PROGRAM_FLOW is set to NO. But setting it to YES causes my test run to fail. Lots of "cannot merge previous GCDA file: corrupt arc tag" entries in the console, and it then crashes in main.m showing BAD_ACCESS on the line calling UIApplicationMain. I cannot turn INSTRUMENT_PROGRAM_FLOW on for the main target, but without it, I cannot generate GCDA files. Anyone have any ideas for this? |
Is XcodeCoverage going to be updated to work with the LLVM-COV profdata file? |
FYI -- I am seeing the same behavior @bixbarton describes with the crash in main.m. Confirmed on Xcode 7.2. |
Thanks to everyone for investigating this while I was occupied elsewhere. I've made the lcov scripts executable, and added the missing script. "Seems to work" so far on a library, but I haven't tried an app yet. @bixbarton and @jstevenco, could you verify that you have the following enabled: GCC_GENERATE_TEST_COVERAGE_FILES |
I can verify that Jon. All 3 are set to yes. On Friday, 25 December 2015, Jon Reid notifications@github.com wrote:
|
I was able to generate code coverage on our project which uses the iOS 9 SDK, but the lcov version in the current tagged release (which the pod references is wrong): #43. |
Closing, at least for now. |
Still I am getting coverage.info empty...Can some one help me please. |
When running on XCode 7 I get:
lcov: ERROR: no valid records found in tracefile Coverage.info
Reading data file Coverage.info
genhtml: ERROR: no valid records found in tracefile Coverage.info
Coverage report is in lcov folder
The text was updated successfully, but these errors were encountered: