Closed chinnasamymca closed 4 years ago
@chinnasamymca Can you try running with --verbose
at the end of you command? That should hopefully give us some more info 🤞
@joshdholtz I got below logs.
INFO [2019-10-24 11:49:26.85]: $ /Users/administrator/.gem/gems/xcov-1.6.0/lib/xcov-core/bin/xcov-core -s /var/folders/jh/tlzjnx212c1fxmhz7flhmspc0000gn/T/d20191024-54942-1xomq1e/action_0.xccovreport -o fastlane/xcov/tmp/report.json20191024-54942-v96hjk --ide-foundation-path /Applications/Xcode.app/Contents/Developer/../Frameworks/IDEFoundation.framework/Versions/A/IDEFoundation INFO [2019-10-24 11:49:26.85]: ▸ Loading... INFO [2019-10-24 11:49:27.90]: ▸ Opening .xccoverage file at path: /var/folders/jh/tlzjnx212c1fxmhz7flhmspc0000gn/T/d20191024-54942-1xomq1e/action_0.xccovreport INFO [2019-10-24 11:49:27.90]: ▸ Parsing .xccoverage file... INFO [2019-10-24 11:49:27.91]: ▸ File successfully parsed Opening .xccoverage file at path: /var/folders/jh/tlzjnx212c1fxmhz7flhmspc0000gn/T/d20191024-54942-1xomq1e/action_0.xccovreport Parsing .xccoverage file... File successfully parsed ERROR [2019-10-24 11:49:27.91]: Exit status: WARN [2019-10-24 11:49:27.91]: Lane Context: INFO [2019-10-24 11:49:27.91]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios test_project", :SCAN_DERIVED_DATA_PATH=>"./derived_data", :SCAN_GENERATED_PLIST_FILES=>[], :SCAN_GENERATED_PLIST_FILE=>nil} ERROR [2019-10-24 11:49:27.91]: Error creating your coverage report - see the log above INFO [2019-10-24 11:49:27.91]: Successfully generated documentation at path '/Users/administrator/builds/cS8sSzJL/0/xxx/xxxx-ios/fastlane/README.md'
See if below log help
RuntimeError: [!] Error creating your coverage report - see the log above
/Users/administrator/.gem/gems/xcov-1.6.0/lib/xcov/error_handler.rb:20:in handle_error' /Users/administrator/.gem/gems/xcov-1.6.0/lib/xcov-core.rb:38:in
block in execute_command'
/Users/administrator/.gem/gems/fastlane-2.133.0/fastlane_core/lib/fastlane_core/command_executor.rb:89:in execute' /Users/administrator/.gem/gems/xcov-1.6.0/lib/xcov-core.rb:30:in
execute_command'
/Users/administrator/.gem/gems/xcov-1.6.0/lib/xcov-core.rb:24:in parse' /Users/administrator/.gem/gems/xcov-1.6.0/lib/xcov/manager.rb:65:in
parse_xccoverage'
/Users/administrator/.gem/gems/xcov-1.6.0/lib/xcov/manager.rb:32:in run' /Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/actions/xcov.rb:8:in
run'
/Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/runner.rb:256:in block (2 levels) in execute_action' /Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in
execute_action'
/Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/runner.rb:235:in block in execute_action' /Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/runner.rb:227:in
chdir'
/Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/runner.rb:227:in execute_action' /Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/runner.rb:157:in
trigger_action_by_name'
/Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/fast_file.rb:159:in method_missing' Fastfile:95:in
block (2 levels) in parsing_binding'
/Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/lane.rb:33:in call' /Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/runner.rb:49:in
block in execute'
/Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/runner.rb:45:in chdir' /Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/runner.rb:45:in
execute'
/Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/lane_manager.rb:56:in cruise_lane' /Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/command_line_handler.rb:36:in
handle'
/Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/commands_generator.rb:108:in block (2 levels) in run' /Users/administrator/.gem/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in
call'
/Users/administrator/.gem/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in run' /Users/administrator/.gem/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in
run_active_command'
/Users/administrator/.gem/gems/fastlane-2.133.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in run!' /Users/administrator/.gem/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in
run!'
/Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/commands_generator.rb:349:in run' /Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/commands_generator.rb:41:in
start'
/Users/administrator/.gem/gems/fastlane-2.133.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in take_off' /Users/administrator/.gem/gems/fastlane-2.133.0/bin/fastlane:23:in
<top (required)>'
/Users/administrator/.gem/bin/fastlane:23:in load' /Users/administrator/.gem/bin/fastlane:23:in
<top (required)>'
Same issue here. Let me know if I can provide any more info. My stack trace is the same as above, failing on xcov-1.6.0/lib/xcov-core.rb:30
Note: This issue happens after upgraded to mac os catalina and Xcode 11
Note: This issue happens after upgraded to mac os catalina and Xcode 11
I can confirm it. Hope, bugfix is coming soon...
Reproduced for me too after upgrade to Catalina. I've tried to downgrade xcov
to 1.5.0 (before Xcode 11 xcresult support added), but it's still failing with the same stacktrace.
Same experience here with the stack trace above. Catalina and XCode 11.1. Happy to provide more info if possible.
Same experience here. The problem occurred when upgrading to Catalina.
The bug is in xcov-core and has to do with relative paths. There is a pull request open here which fixes the problem: https://github.com/fastlane-community/xcov-core/pull/16
There will be a new release for this out in a bit 😊
This has been released in version 1.7.0
💪
Works like a charm. Thanks @joshdholtz and everyone else who work on the fix!
+-----------------------------+-----------------------------------------------------------------------------------------------------------+ | Summary for xcov 1.6.0 | +-----------------------------+-----------------------------------------------------------------------------------------------------------+ | workspace | ./XXX.xcworkspace | | derived_data_path | ./build | | scheme | XXX-BetaTests | | output_directory | fastlane/xcov | | ignore_file_path | .xcov-ignore-path | | minimum_coverage_percentage | 30.0 | | html_report | true | | markdown_report | false | | json_report | false | | skip_slack | false | | slack_username | xcov | | slack_message | Your xcov coverage report | | include_test_targets | false | | only_project_targets | false | | disable_coveralls | false | | ideFoundationPath | /Applications/Xcode.app/Contents/Developer/../Frameworks/IDEFoundation.framework/Versions/A/IDEFoundation | | legacy_support | false | +-----------------------------+-----------------------------------------------------------------------------------------------------------+
[02:41:45]: $ /Users/administrator/.gem/gems/xcov-1.6.0/lib/xcov-core/bin/xcov-core -s /var/folders/jh/tlzjnx212c1fxmhz7flhmspc0000gn/T/d20191024-1493-lafcd9/action_0.xccovreport -o fastlane/xcov/tmp/report.json20191024-1493-1d7kn9p --ide-foundation-path /Applications/Xcode.app/Contents/Developer/../Frameworks/IDEFoundation.framework/Versions/A/IDEFoundation [02:41:45]: ▸ Loading... [02:41:46]: ▸ Opening .xccoverage file at path: /var/folders/jh/tlzjnx212c1fxmhz7flhmspc0000gn/T/d20191024-1493-lafcd9/action_0.xccovreport [02:41:46]: ▸ Parsing .xccoverage file... [02:41:46]: ▸ File successfully parsed Opening .xccoverage file at path: /var/folders/jh/tlzjnx212c1fxmhz7flhmspc0000gn/T/d20191024-1493-lafcd9/action_0.xccovreport Parsing .xccoverage file... File successfully parsed [02:41:46]: Exit status: +----------------------------+------------------+ | Lane Context | +----------------------------+------------------+ | DEFAULT_PLATFORM | ios | | PLATFORM_NAME | ios | | LANE_NAME | ios test_project | | SCAN_DERIVED_DATA_PATH | ./build | | SCAN_GENERATED_PLIST_FILES | [] | | SCAN_GENERATED_PLIST_FILE | | +----------------------------+------------------+ [02:41:46]: Error creating your coverage report - see the log above
I unable to find out the issue, Its just exited after the
File successfully parsed
, How to debug this issue ?