-
-
Notifications
You must be signed in to change notification settings - Fork 113
Open
Description
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'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels