Sonarqube Integration on Azure Devops - iOS Project - xcode

I am trying to integrate Sonarqube onto an iOS project through Azure Pipeline .I have followed the exact steps mentioned here
https://github.com/SonarSource/sonar-scanning-examples/tree/master/swift-coverage
But I am getting an error saying
Error: Error Domain=XCCovErrorDomain Code=0 "Failed to create unarchiver" UserInfo={NSLocalizedDescription=Failed to create unarchiver, NSUnderlyingError=0x7fa71961ce40 {Error Domain=NSCocoaErrorDomain Code=260 "The file Metadata.plist couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/runner/work/1/s/tmp.xccovarchive/Metadata.plist, NSUnderlyingError=0x7fa71961cd80 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}}}
Can anyone please let me know why this error is showing ,I tried to run the same in local machine and it seems working , and the issue is only on Azure Pipeline.
Looking for some support

I find the same error on link here and here, it could be caused by the coverage data is not correctly generated.
Check the command used according to the Xcode version. In addition, if you are using Microsoft-hosted agent, please check the xcode version on the agent.

Related

Xcode 12.5 deploy: An error occurred uploading to the App Store

I get this error when deploying with Xcode 12.5 at the final step, while uploading:
App Store Connect Operation Error
An error occurred uploading to the App Store.
There's no further description nor can I find anything about it.
None of the fixes I found on older posts helped on this one.
When I execute ./iTMSTransporter -version here /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/bin I get this error:
java.io.IOException: Server returned HTTP response code: 502 for URL: https://contentdelivery.itunes.apple.com/transporter/lib/osgibootstrapper.jar
Not sure if that has anything to do with it...
How can I fix this or where can I find more information on this error?
Faced the same issue today. I have completely clean the Derived Data and other Developer cache files and started from the beginning (Archive + Upload). This solved the problem.
Also, the first build failed because I ran out of disk space but this is maybe not related to the issue.
What works for me:
Create archive with Xcode 12.5
Quit Xcode 12.5
Open Xcode 13
Open Organizer and upload archive

Nativescript Sidekick Publish to App Store

I'm running Sidekick on my Windows 10 machine (64b).
I'm trying to publish my app to the Apple AppStore.
Certificate, provision is all ok.
When I publish, build is made, I can log in when asked and fill in the verication code.
But then I get error 'Spawn Failed'. Googled this error, but didn't find anything.
Erros in the log are:
[19-03-08 10:52:20.711] (CLI) Build machine host name:
administrators-Mac-16.local
[19-03-08 10:52:58.349] Spawn failed.
, Error: Spawn failed.
at CloudPublishService.getiOSError (C:\Users\bartad\AppData\Roaming.nativescript-cli\extensions\node_modules\nativescript-cloud\lib\services\cloud-publish-service.js:79:21)
at CloudPublishService.
(C:\Users\bartad\AppData\Roaming.nativescript-cli\extensions\node_modules\nativescript-cloud\lib\services\cloud-publish-service.js:96:29)
at Generator.next ()
at fulfilled
(C:\Users\bartad\AppData\Roaming.nativescript-cli\extensions\node_modules\nativescript-cloud\lib\services\cloud-publish-service.js:4:58)
at
Does anyone have an idea what's wrong here ?
Thanks
Bart
Issues I encountered:
1) Provisioning was not right. Went back through and checked that each step is for a Distribution certificate and profile, not a development profile.
2) I assumed that tns resources generate would create my icons and splashes. It did, but Sidekick ignores them. You must recreate them in Sidekick.

Azure custom script extension stuck. not able to rerun or delete extension

I was trying to run a custom script on my scaleset vm due to the wrong location of the sh file the exeuction failed. but after that when I try to remove (az vmss extension delete) or rerun(az vmss extension set ) the custom script with correct url I keep getting the same error. It is stuck. How do I fix it.
Deployment failed. Correlation ID:
249a034f-76e2-4b0d-beb2-e9c6577623d1. VM has reported a failure when
processing extension 'customScript'. Error message: "Enable failed:
processing file downloads failed: failed to download file[0]: failed
to download file: http request failed: Get
https://wrongurl.blob.core.windows.net/script/deploytemp.sh: dial tcp:
lookup wrongurl.blob.core.windows.net on 164.33.122.16:53: no such
host".
Delete the instance and rebuild it!
It might not be the answer to delete the instance and rebuilding it, but applications on VMSS by nature should be resilient enough to let you do so.
Also, I'm curious if auto-healing/remediation helps you on this, I know that it does not reinstall the extension tough.

Getting error while deploying the database project

I am trying to deploy the database project using start option. But it giving me below error :
"Error 12 SQL72045: Script execution error"
At the time of publish it get properly reflect the changes.

Xcode Bots:: Creating archive failed: xcodebuild exited with status 65

My integration succeeded but archive fails every-time with following warning mentioned below -:
**Warning: Build Service Error:** Creating archive failed: xcodebuild exited with status 65.
**Warning: Build Service Error:** Skipping exporting from archive because creating the archive failed.
I had the same problem. In my case the code signing was set to automatic. When I change it to an distribution certificate it worked.
I was having this issue after updating to the Server beta. I was able to fix it by adding my team to the Xcode server settings.
Its a problem of certificate. Try to check if you have the certificate on your machine corresponding to the build you want to make.

Resources