Description
I’m trying to upload my xCode test results via CI but I got “There was an error processing coverage reports” error.
Repository
private
CI/CD
Bitrise
Uploader
Bitrise’s codecov step, but as far as I know it just uses bash uploader.
Commit SHAs
Codecov YAML
{
"ignore": [
"^{actual-project-name}/{actual-project-name}/SupportingFiles.*",
"^{actual-project-name}/{actual-project-name}ScreenshotsUITests.*",
"^{actual-project-name}/{actual-project-name}Tests.*",
"^{actual-project-name}/{actual-project-name}UITests.*",
"^{actual-project-name}/SwiftGenTemplates.*"
]
}
Codecov Output
==> Bitrise CI detected.
project root: .
--> token set from env
Yaml found at: codecov.yml
==> Processing Xcode reports via llvm-cov
DerivedData folder: /Users/vagrant/Library/Developer/Xcode/DerivedData
hint Speed up Swift processing by using use -J 'AppName' (regexp accepted)
hint This will remove Pods/ from your report. Also https://docs.codecov.io/docs/ignoring-paths
+ Building reports for {app-name} app
/dev/fd/63: line 221: {app-}/g{name}.app.coverage.txt: No such file or directory
x> llvm-cov failed to produce results for /Users/vagrant/Library/Developer/Xcode/DerivedData/{app-name}-hlflfrsbozutsdfslizvhcjpmgek/Build/Products/Debug-iphonesimulator/{app-name}.app/{app-name}
+ Building reports for XCTAutomationSupport framework
error: /Users/vagrant/Library/Developer/Xcode/DerivedData/{app-name}-hlflfrsbozutsdfslizvhcjpmgek/Build/Products/Debug-iphonesimulator/{app-name}.app/Frameworks/XCTAutomationSupport.framework/XCTAutomationSupport: Failed to load coverage: Unknown architecture named:
x> llvm-cov failed to produce results for /Users/vagrant/Library/Developer/Xcode/DerivedData/{app-name}-hlflfrsbozutsdfslizvhcjpmgek/Build/Products/Debug-iphonesimulator/{app-name}.app/Frameworks/XCTAutomationSupport.framework/XCTAutomationSupport
+ Building reports for XCTest framework
error: /Users/vagrant/Library/Developer/Xcode/DerivedData/{app-name}-hlflfrsbozutsdfslizvhcjpmgek/Build/Products/Debug-iphonesimulator/{app-name}.app/Frameworks/XCTest.framework/XCTest: Failed to load coverage: Unknown architecture named:
x> llvm-cov failed to produce results for /Users/vagrant/Library/Developer/Xcode/DerivedData/{app-name}-hlflfrsbozutsdfslizvhcjpmgek/Build/Products/Debug-iphonesimulator/{app-name}.app/Frameworks/XCTest.framework/XCTest
+ Building reports for {app-name}Tests xctest
-> Running gcov for Obj-C
==> Running gcov in . (disable via -X gcov)
==> Python coveragepy not found
==> Searching for coverage reports in:
+ .
-> Found 3 reports
==> Detecting git/mercurial file structure
==> Reading reports
- Skipping empty file ./XCTAutomationSupport.framework.coverage.txt
+ ./{app-name}Tests.xctest.coverage.txt bytes=38240
- Skipping empty file ./XCTest.framework.coverage.txt
==> Appending adjustments
https://docs.codecov.io/docs/fixing-reports
+ Found adjustments
==> Gzipping contents
==> Uploading reports
url: https://codecov.io
query: branch=development&commit=7ee9f4afb266536afed9777532828b5b97d92545&build=175&build_url=https%3A%2F%2Fapp.bitrise.io%2Fbuild%2Fac93fd22c20ae08b&name=&tag=&slug={slug}&service=bitrise&flags=&pr=&job=&cmd_args=Z,C
-> Pinging Codecov
https://codecov.io/upload/v4?package=bash-20200728-9fb7d93&token=secret&branch=development&commit=7ee9f4afb266536afed9777532828b5b97d92545&build=175&build_url=https%3A%2F%2Fapp.bitrise.io%2Fbuild%2Fac93fd22c20ae08b&name=&tag=&slug={slug}&service=bitrise&flags=&pr=&job=&cmd_args=Z,C
-> Uploading to
{storage.googleapis.com/codecov}
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 10432 0 0 100 10432 0 33435 --:--:-- --:--:-- --:--:-- 33435
-> View reports at {code-cov-url}