-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Update xccov-to-sonarqube-generic.sh for xcode 11 #64
Update xccov-to-sonarqube-generic.sh for xcode 11 #64
Conversation
@emanuelschmoczer I'm getting this error using your fix: I'm using Xcode 11 any ideas? thanks in advance! |
We had the same issue and the reason for that error was: We called the script for testing purpose with Qutoes around the 1st Parameters i.e.: |
swift-coverage/swift-coverage-example/xccov-to-sonarqube-generic.sh
Outdated
Show resolved
Hide resolved
xcrun xccov view --file-list "$xccovarchive_file" | while read -r file_name; do | ||
convert_file "$xccovarchive_file" "$file_name" | ||
local xccov_options="" | ||
if [[ $xccovarchive_file == *".xcresult"* ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Asterisk at the end of the pattern makes this test false positive for Xcode 10 as both
Build/Logs/Test/*.xcresult/*_Test/*.xccovarchive/
and
Build/Logs/Test/*.xcresult/
file paths contain .xcresult
.
Proper test would be [[ $xccovarchive_file == *".xcresult/" ]]
Hi All, I’m also getting same issue which you were getting Amit. SGMUOB4KNG8WN:ios nxgdev09$ sh xccov-to-sonarqube-generic.sh “/DerivedData/Logs/Test/*.xcresult” > sonarqube.generic-coverage.xml Error: Error Domain=XCCovErrorDomain Code=0 “Failed to load result bundle” UserInfo={NSLocalizedDescription=Failed to load result bundle, NSUnderlyingError=0x7fdf41600e20 {Error Domain=IDEFoundation.ResultBundleError Code=0 “This version of Xcode does not support opening result bundles created with versions of Xcode and xcodebuild using the v1 API.”}} Could someone help us to identify the root cause in xcode11.3. |
Hi all, unfortunately still experiencing the same issue using Xcode 11.4 and CocoaPods 1.9.1, both without and with quotes around the path to the test results.
|
I just got this error trying it out today with Xcode 11.5... |
Hello using Xcode 14.2.0 is working fine, but I updated to Xcode 14.3.1 and I got the same issue on my pay package project: Any idea how to verify my current installation or solve the issue?
|
@JULIANCHO923 Please see #164, which may be related. Also, check #146 (comment). |
This PR would make xccov-to-sonarqube-generic.sh work with Xcode 11 (see #63) while not changing anything for previous versions.