Giter Club home page Giter Club logo

Comments (17)

jonreid avatar jonreid commented on June 7, 2024

Xcode 7 generates coverage in a different file format.
More info in this article: https://www.bignerdranch.com/blog/weve-got-you-covered/
I'm keeping an eye on this: SlatherOrg/slather#89

from xcodecoverage.

DaidoujiChen avatar DaidoujiChen commented on June 7, 2024

the same issue.

from xcodecoverage.

mmesutt avatar mmesutt commented on June 7, 2024

the same issue.

from xcodecoverage.

Torreslol avatar Torreslol commented on June 7, 2024

the same issue

from xcodecoverage.

jonreid avatar jonreid commented on June 7, 2024

How are things with the lcov update, as of 77afcfc?

from xcodecoverage.

michaelmyers avatar michaelmyers commented on June 7, 2024

Jon,

Pulling from master, it looks like it is almost back. I had to make the lcov scripts executable and then added get_version.sh from lcov to suppress the error created by this line.

It looks like the Line Data count is off (the numbers are gigantic, 58411*10^7, maybe an unsigned vs signed int issue) however the bigger issue I am experiencing is the cannot merge previous GCDA file: corrupt arc tag console spam followed by a crash. It generates some of the gcda files so the getcov script will process the ones available but (I believe) that crash is preventing the majority of the gcda files from being created.

The consensus after a couple of searches on how to solve the cannot merge issue is to turn off instrumentation and code coverage support, which doesn't help us out. I will report back if I figure anything else out.

Also, thanks for your hard work on the project. You are fighting the good fight.

Michael

from xcodecoverage.

bixbarton avatar bixbarton commented on June 7, 2024

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.

from xcodecoverage.

michaelmyers avatar michaelmyers commented on June 7, 2024

@bixbarton You can get get_version.sh from the lcov project, the development version is here on github. Xcodecoverage uses lcov to convert the coverage data to HTML.

I have not seen the root scan issue that you describe.

from xcodecoverage.

bixbarton avatar bixbarton commented on June 7, 2024

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.

from xcodecoverage.

bixbarton avatar bixbarton commented on June 7, 2024

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?

from xcodecoverage.

bixbarton avatar bixbarton commented on June 7, 2024

Is XcodeCoverage going to be updated to work with the LLVM-COV profdata file?

from xcodecoverage.

jstevenco avatar jstevenco commented on June 7, 2024

FYI -- I am seeing the same behavior @bixbarton describes with the crash in main.m. Confirmed on Xcode 7.2.

from xcodecoverage.

jonreid avatar jonreid commented on June 7, 2024

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
CLANG_ENABLE_CODE_COVERAGE
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS

from xcodecoverage.

bixbarton avatar bixbarton commented on June 7, 2024

I can verify that Jon. All 3 are set to yes.

On Friday, 25 December 2015, Jon Reid [email protected] wrote:

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 https://github.com/bixbarton and @jstevenco
https://github.com/jstevenco, could you verify that you have the
following enabled:

GCC_GENERATE_TEST_COVERAGE_FILES
CLANG_ENABLE_CODE_COVERAGE
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS


Reply to this email directly or view it on GitHub
#40 (comment)
.

from xcodecoverage.

Panajev avatar Panajev commented on June 7, 2024

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.

from xcodecoverage.

jonreid avatar jonreid commented on June 7, 2024

Closing, at least for now.

from xcodecoverage.

Manoj412 avatar Manoj412 commented on June 7, 2024

Still I am getting coverage.info empty...Can some one help me please.

from xcodecoverage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.