Xcov of fastlane not found the file .xccoverage, i try some many change but all the time not work…
i have open access for Bitrise assistance. build #460
i have this error on Bitrise
[09:00:02]: Unable to find any .xccoverage file.
[09:00:02]: Make sure you have enabled 'Gather code coverage' setting on your scheme settings.
[09:00:02]: Alternatively you can provide the full path to your .xccoverage file.
[09:00:02]: Sending crash report...
[09:00:02]: The stack trace is sanitized so no personal information is sent.
[09:00:02]: To see what we are sending, look here: /Users/vagrant/.fastlane/latest_crash.json
[09:00:02]: Learn more at https://docs.fastlane.tools/actions/opt_out_crash_reporting/
[09:00:02]: You can disable crash reporting by adding `opt_out_crash_reporting` at the top of your Fastfile
[09:00:02]: An error occurred while executing the `error` block:
[09:00:02]: undefined method `error_info' for #<NoMethodError:0x00007fe09acfd8c0>
and this is my fastlane file
desc "Test and covorage and repport"
lane :test do
clear_derived_data
test_scan
#swiftlint(output_file: "#{ENV["SCAN_RESULTS_PATH"]}/swiftlint.txt",
#config_file: ENV["SWIFTLINT_PATH"],
#ignore_exit_status: true)
#sh("cd .. && lizard #{ENV["LIZARD_SOURCES_PATH"]} -l swift --xml > #{ENV["SCAN_RESULTS_PATH"]}/lizard-report.xml")
test_cov
end
desc "Scan"
lane :test_scan do
begin
scan(
configuration: ENV["CONFIGURATION"],
workspace: ENV["WORKSPACE"],
scheme: ENV["SCHEME"],
device: "iPhone 6",
output_directory: "./fastlane/scan_output",
derived_data_path: ENV["DERIVED_DATA"],
clean: false,
code_coverage: true,
result_bundle: true
)
rescue => exception
on_error("❌ Fail Lane test_scan 🚩", exception)
raise exception
end
end
desc "XCov"
lane :test_cov do
begin
xcov(
configuration: ENV["CONFIGURATION"],
workspace: ENV["WORKSPACE"],
scheme: ENV["SCHEME"],
output_directory: "./fastlane/xcov_output",
html_report: true,
minimum_coverage_percentage: 1.0,
ignore_file_path: "./fastlane/.xcovignore",
slack_username: "Bitrise CI",
slack_url: ENV["SLACK_URL"],
derived_data_path: ENV["DERIVED_DATA"]
)
rescue => exception
on_error("❌ Fail Lane test_cov 🚩", exception)
raise exception
end
end
My config file is good i check.
So please help me