Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- how is SonarQube deployed: zip, Docker, Helm :
- what are you trying to achieve : azure task for xcode build is failing with below error
- what have you tried so far to achieve this: tried to update azure pipeline mac agent
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
command: ./build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir buildWrapperOutputDirectory xcodebuild -workspace xxxx-xxxx.xcworkspace -scheme xxxx-xxxx -sdk iphoneos
Error:
xcodebuild: error: Could not resolve package dependencies:
Invalid manifest
build-wrapper: connect to /tmp/build-wrapper-socket.VgTovw: Operation not permitted in GitHub - firebase/firebase-ios-sdk: Firebase SDK for Apple App Development
ganncamp
(G Ann Campbell)
2
Hi,
Welcome to the community!
Could we have that full log, redacted as necessary please?
Thx,
Ann
@ganncamp PFB complete logs:
2024-06-10T11:07:04.5849440Z ##[debug]Evaluating condition for step: 'build-wrapper-xcode build'
2024-06-10T11:07:04.5851180Z ##[debug]Evaluating: succeeded()
2024-06-10T11:07:04.5851980Z ##[debug]Evaluating succeeded:
2024-06-10T11:07:04.5852650Z ##[debug]=> True
2024-06-10T11:07:04.5853720Z ##[debug]Result: True
2024-06-10T11:07:04.5854440Z ##[section]Starting: build-wrapper-xcode build
2024-06-10T11:07:04.5861310Z ==============================================================================
2024-06-10T11:07:04.5861710Z Task : Bash
2024-06-10T11:07:04.5861900Z Description : Run a Bash script on macOS, Linux, or Windows
2024-06-10T11:07:04.5862070Z Version : 3.239.1
2024-06-10T11:07:04.5862210Z Author : Microsoft Corporation
2024-06-10T11:07:04.5862350Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash
2024-06-10T11:07:04.5862660Z ==============================================================================
2024-06-10T11:07:04.6270130Z ##[debug]Resource Utilization warnings is disabled, switch "DISABLE_RESOURCE_UTILIZATION_WARNINGS" variable to "true" if you want to enable it
2024-06-10T11:07:04.6319080Z ##[debug]Using node path: /Users/runner/runners/3.240.1/externals/node20_1/bin/node
2024-06-10T11:07:04.7079700Z ##[debug]agent.TempDirectory=/Users/runner/work/_temp
2024-06-10T11:07:04.7087390Z ##[debug]loading inputs and endpoints
2024-06-10T11:07:04.7091800Z ##[debug]loading INPUT_TARGETTYPE
2024-06-10T11:07:04.7106680Z ##[debug]loading INPUT_FILEPATH
2024-06-10T11:07:04.7107700Z ##[debug]loading INPUT_SCRIPT
2024-06-10T11:07:04.7108840Z ##[debug]loading INPUT_WORKINGDIRECTORY
2024-06-10T11:07:04.7109850Z ##[debug]loading INPUT_FAILONSTDERR
2024-06-10T11:07:04.7111260Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2024-06-10T11:07:04.7112530Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2024-06-10T11:07:04.7115310Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2024-06-10T11:07:04.7119350Z ##[debug]loading SECRET_KEYCHAINPASSWORD
2024-06-10T11:07:04.7120730Z ##[debug]loading SECRET_SONARQUBE_ENDPOINT
2024-06-10T11:07:04.7124170Z ##[debug]loading SECRET_APPKNOX_TOKEN
2024-06-10T11:07:04.7126240Z ##[debug]loaded 11
2024-06-10T11:07:04.7130290Z ##[debug]Agent.ProxyUrl=undefined
2024-06-10T11:07:04.7132070Z ##[debug]Agent.CAInfo=undefined
2024-06-10T11:07:04.7133120Z ##[debug]Agent.ClientCert=undefined
2024-06-10T11:07:04.7133930Z ##[debug]Agent.SkipCertValidation=undefined
2024-06-10T11:07:04.7146050Z ##[debug]check path : /Users/runner/work/_tasks/Bash_6c731c3c-3c68-459a-a5c9-bde6e6595b5b/3.239.1/task.json
2024-06-10T11:07:04.7149100Z ##[debug]adding resource file: /Users/runner/work/_tasks/Bash_6c731c3c-3c68-459a-a5c9-bde6e6595b5b/3.239.1/task.json
2024-06-10T11:07:04.7150070Z ##[debug]system.culture=en-US
2024-06-10T11:07:04.7159210Z ##[debug]failOnStderr=false
2024-06-10T11:07:04.7161170Z ##[debug]workingDirectory=/Users/runner/work/1/s
2024-06-10T11:07:04.7162240Z ##[debug]check path : /Users/runner/work/1/s
2024-06-10T11:07:04.7163030Z ##[debug]targetType=inline
2024-06-10T11:07:04.7163820Z ##[debug]bashEnvValue=undefined
2024-06-10T11:07:04.7165700Z ##[debug]script=./build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir buildWrapperOutputDirectory xcodebuild -workspace pampers-rewards-ios.xcworkspace -scheme pampers-rewards-ios-us -sdk iphoneos
2024-06-10T11:07:04.7176440Z Generating script.
2024-06-10T11:07:04.7181920Z ##[debug]which 'bash'
2024-06-10T11:07:04.7188110Z ##[debug]found: '/bin/bash'
2024-06-10T11:07:04.7189530Z ##[debug]Agent.Version=3.240.1
2024-06-10T11:07:04.7192260Z ##[debug]agent.tempDirectory=/Users/runner/work/_temp
2024-06-10T11:07:04.7193860Z ##[debug]check path : /Users/runner/work/_temp
2024-06-10T11:07:04.7194730Z ========================== Starting Command Output ===========================
2024-06-10T11:07:04.7195800Z ##[debug]which '/bin/bash'
2024-06-10T11:07:04.7196800Z ##[debug]found: '/bin/bash'
2024-06-10T11:07:04.7197680Z ##[debug]/bin/bash arg: /Users/runner/work/_temp/7aa98c07-bedb-4bb2-974a-b5a83e3db5e7.sh
2024-06-10T11:07:04.7198690Z ##[debug]exec tool: /bin/bash
2024-06-10T11:07:04.7199850Z ##[debug]arguments:
2024-06-10T11:07:04.7200730Z ##[debug] /Users/runner/work/_temp/7aa98c07-bedb-4bb2-974a-b5a83e3db5e7.sh
2024-06-10T11:07:04.7201980Z [command]/bin/bash /Users/runner/work/_temp/7aa98c07-bedb-4bb2-974a-b5a83e3db5e7.sh
2024-06-10T11:07:07.6666850Z ##[debug]Agent environment resources - Disk: / Available 57438.00 MB out of 306871.00 MB, Memory: Used 5216.00 MB out of 14329.00 MB, CPU: Usage 2.44%
2024-06-10T11:07:08.7081800Z Command line invocation:
2024-06-10T11:07:08.7084120Z /Applications/Xcode_14.2.app/Contents/Developer/usr/bin/xcodebuild -workspace pampers-rewards-ios.xcworkspace -scheme pampers-rewards-ios-us -sdk iphoneos
2024-06-10T11:07:08.7109000Z
2024-06-10T11:07:08.7109370Z User defaults from command line:
2024-06-10T11:07:08.7109700Z IDEPackageSupportUseBuiltinSCM = YES
2024-06-10T11:07:08.7109880Z
2024-06-10T11:07:08.7110150Z Build settings from command line:
2024-06-10T11:07:08.7110770Z SDKROOT = iphoneos16.2
2024-06-10T11:07:08.7110910Z
2024-06-10T11:07:12.6885630Z ##[debug]Agent environment resources - Disk: / Available 57438.00 MB out of 306871.00 MB, Memory: Used 5591.00 MB out of 14332.00 MB, CPU: Usage 2.43%
2024-06-10T11:07:17.7767370Z ##[debug]Agent environment resources - Disk: / Available 57438.00 MB out of 306871.00 MB, Memory: Used 4815.00 MB out of 14333.00 MB, CPU: Usage 2.43%
2024-06-10T11:07:22.9032640Z ##[debug]Agent environment resources - Disk: / Available 57137.00 MB out of 306871.00 MB, Memory: Used 5030.00 MB out of 14330.00 MB, CPU: Usage 2.42%
2024-06-10T11:07:28.0121290Z ##[debug]Agent environment resources - Disk: / Available 57137.00 MB out of 306871.00 MB, Memory: Used 5141.00 MB out of 14330.00 MB, CPU: Usage 2.41%
2024-06-10T11:07:33.0326190Z ##[debug]Agent environment resources - Disk: / Available 57137.00 MB out of 306871.00 MB, Memory: Used 5362.00 MB out of 14333.00 MB, CPU: Usage 2.40%
2024-06-10T11:07:36.7470130Z Resolve Package Graph
2024-06-10T11:07:36.7996630Z
2024-06-10T11:07:36.8002410Z Fetching from https://github.com/google/gtm-session-fetcher.git
2024-06-10T11:07:38.0402890Z ##[debug]Agent environment resources - Disk: / Available 57135.00 MB out of 306871.00 MB, Memory: Used 5375.00 MB out of 14331.00 MB, CPU: Usage 2.39%
2024-06-10T11:07:38.0866190Z
2024-06-10T11:07:38.0880130Z Fetching from https://github.com/braze-inc/braze-segment-swift
2024-06-10T11:07:38.0882080Z
2024-06-10T11:07:38.0933090Z Fetching from https://github.com/google/promises.git
2024-06-10T11:07:38.0940530Z
2024-06-10T11:07:38.0944160Z Fetching from https://github.com/braze-inc/braze-swift-sdk
2024-06-10T11:07:43.0498740Z ##[debug]Agent environment resources - Disk: / Available 57084.00 MB out of 306871.00 MB, Memory: Used 5414.00 MB out of 14334.00 MB, CPU: Usage 2.38%
2024-06-10T11:07:44.2754980Z
2024-06-10T11:07:44.2805980Z Fetching from https://github.com/google/GoogleAppMeasurement.git
2024-06-10T11:07:44.2809160Z
2024-06-10T11:07:44.2813560Z Fetching from https://github.com/segmentio/sovran-swift.git
2024-06-10T11:07:44.2823650Z
2024-06-10T11:07:44.2877050Z Fetching from https://github.com/firebase/firebase-ios-sdk
2024-06-10T11:07:48.1048050Z ##[debug]Agent environment resources - Disk: / Available 57033.00 MB out of 306871.00 MB, Memory: Used 5431.00 MB out of 14333.00 MB, CPU: Usage 2.37%
2024-06-10T11:07:53.2015330Z ##[debug]Agent environment resources - Disk: / Available 56601.00 MB out of 306871.00 MB, Memory: Used 5626.00 MB out of 14333.00 MB, CPU: Usage 2.37%
2024-06-10T11:07:58.3025800Z ##[debug]Agent environment resources - Disk: / Available 56508.00 MB out of 306871.00 MB, Memory: Used 5656.00 MB out of 14331.00 MB, CPU: Usage 2.36%
2024-06-10T11:08:03.4275360Z ##[debug]Agent environment resources - Disk: / Available 56430.00 MB out of 306871.00 MB, Memory: Used 5604.00 MB out of 14330.00 MB, CPU: Usage 2.35%
2024-06-10T11:08:07.0482870Z
2024-06-10T11:08:07.0485110Z Fetching from https://github.com/apple/swift-protobuf.git
2024-06-10T11:08:07.0485640Z
2024-06-10T11:08:07.0486140Z Fetching from https://github.com/segmentio/jsonsafeencoding-swift.git
2024-06-10T11:08:07.0486460Z
2024-06-10T11:08:07.0486860Z Fetching from https://github.com/auth0/JWTDecode.swift.git
2024-06-10T11:08:07.0487120Z
2024-06-10T11:08:07.0488610Z Fetching from https://github.com/auth0/SimpleKeychain.git
2024-06-10T11:08:07.0490230Z
2024-06-10T11:08:07.0492560Z Fetching from https://github.com/adjust/ios_sdk.git
2024-06-10T11:08:07.0493940Z
2024-06-10T11:08:07.0495860Z Fetching from https://github.com/SDWebImage/SDWebImage.git
2024-06-10T11:08:07.0497770Z
2024-06-10T11:08:07.0499490Z Fetching from https://github.com/google/GoogleDataTransport.git
2024-06-10T11:08:07.0500500Z
2024-06-10T11:08:07.0502790Z Fetching from https://github.com/segment-integrations/analytics-swift-firebase
2024-06-10T11:08:07.0503210Z
2024-06-10T11:08:07.0504770Z Fetching from https://github.com/google/abseil-cpp-binary.git
2024-06-10T11:08:07.0505590Z
2024-06-10T11:08:07.0507320Z Fetching from https://github.com/google/interop-ios-for-google-sdks.git
2024-06-10T11:08:07.0507690Z
2024-06-10T11:08:07.0508050Z Fetching from https://github.com/auth0/Auth0.swift
2024-06-10T11:08:07.0508350Z
2024-06-10T11:08:07.0508720Z Fetching from https://github.com/firebase/leveldb.git
2024-06-10T11:08:07.0509020Z
2024-06-10T11:08:07.0510980Z Fetching from https://github.com/segmentio/analytics-swift
2024-06-10T11:08:07.0511380Z
2024-06-10T11:08:07.0512870Z Fetching from https://github.com/firebase/nanopb.git
2024-06-10T11:08:07.0513970Z
2024-06-10T11:08:07.0515390Z Fetching from https://github.com/google/app-check.git
2024-06-10T11:08:07.0516170Z
2024-06-10T11:08:07.0518910Z Fetching from https://github.com/google/grpc-binary.git
2024-06-10T11:08:07.0519950Z
2024-06-10T11:08:07.0521460Z Fetching from https://github.com/segment-integrations/analytics-swift-integration-adjust
2024-06-10T11:08:07.0522360Z
2024-06-10T11:08:07.0524200Z Fetching from https://github.com/google/GoogleUtilities.git
2024-06-10T11:08:07.0525120Z
2024-06-10T11:08:08.4395360Z ##[debug]Agent environment resources - Disk: / Available 56418.00 MB out of 306871.00 MB, Memory: Used 5603.00 MB out of 14333.00 MB, CPU: Usage 2.35%
2024-06-10T11:08:13.4674170Z ##[debug]Agent environment resources - Disk: / Available 56377.00 MB out of 306871.00 MB, Memory: Used 5830.00 MB out of 14330.00 MB, CPU: Usage 2.34%
2024-06-10T11:08:18.5004630Z ##[debug]Agent environment resources - Disk: / Available 56353.00 MB out of 306871.00 MB, Memory: Used 5586.00 MB out of 14331.00 MB, CPU: Usage 2.34%
2024-06-10T11:08:23.5559710Z ##[debug]Agent environment resources - Disk: / Available 56352.00 MB out of 306871.00 MB, Memory: Used 5592.00 MB out of 14330.00 MB, CPU: Usage 2.33%
2024-06-10T11:08:26.4366220Z 2024-06-10 11:08:26.435 xcodebuild[12499:41180] Writing error result bundle to /var/folders/v_/hyh3_pjd2rx2qn6110n50l500000gn/T/ResultBundle_2024-10-06_11-08-0026.xcresult
2024-06-10T11:08:26.4405770Z Invalid manifest
2024-06-10T11:08:27.5980270Z build-wrapper: connect to /tmp/build-wrapper-socket.sBVA0g: Operation not permitted in https://github.com/firebase/firebase-ios-sdkxcodebuild: error: Could not resolve package dependencies:
2024-06-10T11:08:27.5981420Z Invalid manifest
2024-06-10T11:08:27.5982210Z build-wrapper: connect to /tmp/build-wrapper-socket.sBVA0g: Operation not permitted in https://github.com/firebase/firebase-ios-sdk
2024-06-10T11:08:27.5982800Z
2024-06-10T11:08:27.6303090Z ##[debug]Exit code 74 received from tool '/bin/bash'
2024-06-10T11:08:27.6308460Z
2024-06-10T11:08:27.6309840Z ##[debug]STDIO streams have closed for tool '/bin/bash'
2024-06-10T11:08:27.6322040Z ##[error]Bash exited with code '74'.
2024-06-10T11:08:27.6323390Z ##[debug]Processed: ##vso[task.issue type=error;source=TaskInternal;]Bash exited with code '74'.
2024-06-10T11:08:27.6324750Z ##[debug]task result: Failed
2024-06-10T11:08:27.6327820Z ##[debug]Processed: ##vso[task.complete result=Failed;done=true;]
2024-06-10T11:08:27.6374090Z ##[section]Finishing: build-wrapper-xcode build
ganncamp
(G Ann Campbell)
4
Hi,
Thanks for the log.
The error happens before you get to anything Sonar-related:
So I don’t think we can help you.
Ann