Skip to content
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 16 report 0% coverage using xcov #227

Open
rleojoseph opened this issue Oct 7, 2024 · 2 comments
Open

Xcode 16 report 0% coverage using xcov #227

rleojoseph opened this issue Oct 7, 2024 · 2 comments

Comments

@rleojoseph
Copy link

I have been using XCode 14 and xcov to report coverage, it was working fine until we moved to Xcode 16.
Gemfile has the following,

gem 'xcov', '1.8.1'
gem 'danger'
gem 'xcresult', '0.2.2'

And how I generate report,

 xcov(
        workspace: "NetworkPolling.xcworkspace",
        scheme: "Local",
        include_targets: "Network.app",
        include_test_targets: false,
        output_directory: outpul_directory,
        derived_data_path: "build/fastlane/derived_data",
        ignore_file_path: ignore_file_path,
        json_report: true,
        skip_slack: true,
      )

Output is

INFO [2024-10-07 08:48:23.70]: $ xcodebuild -showBuildSettings -workspace NetworkPolling.xcworkspace -scheme Local -derivedDataPath build/fastlane/derived_data 2>&1
++
| xcov Coverage Report |
++
++

INFO [2024-10-07 08:48:29.42]: Feature: Local

ERROR [2024-10-07 08:48:29.42]: Network: 0.00% (below minimum coverage of 70.0%)
INFO [2024-10-07 08:48:29.42]: Successfully generated documentation at path '/Users/<USERNAME>/Git/Network/fastlane/README.md'

If I try the same with legacy_support: true

then the output is like this,

INFO [2024-10-07 08:59:59.74]: ▸ Loading...
INFO [2024-10-07 08:59:59.76]: ▸ ------ xcov-core ------
INFO [2024-10-07 08:59:59.76]: ▸ Opening .xccoverage file at path: /Users/<USERNAME>/Git/Network/build/fastlane/xcov_output/Network/xccovreport-0.xccovreport
INFO [2024-10-07 08:59:59.80]: ▸ Parsing .xccoverage file...
INFO [2024-10-07 08:59:59.80]: ▸ Caught: NSInvalidArgumentException: -[_NSInlineData countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x7fc6c880fa00
------ xcov-core ------
Opening .xccoverage file at path: /Users/<USERNAME>/Git/Network/build/fastlane/xcov_output/Network/xccovreport-0.xccovreport
Parsing .xccoverage file...
Caught: NSInvalidArgumentException: -[_NSInlineData countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x7fc6c880fa00
ERROR [2024-10-07 08:59:59.80]: Exit status: 1
ERROR [2024-10-07 08:59:59.80]: Failed to execute xcov: Error creating your coverage report - see the log above
INFO [2024-10-07 08:59:59.80]: Successfully generated documentation at path '/Users/<USERNAME>/Git/Network/fastlane/README.md'
@stephengilroy-grx
Copy link

We are seeing the same thing 😕 ... did you make any headway?

@rleojoseph
Copy link
Author

No @stephengilroy-grx . Still the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants