Hi, I have an issue with the build-wrapper command:
Our codebase contains Swift & Obj-C code and we use Xcode 12.
build-wrapper version: 6.13 (macosx-x86)
When running the build wrapper command
build-wrapper-macosx-x86 --out-dir sonar-reports xcodebuild -workspace MyProject.xcworkspace -scheme MyProject-Alpha -derivedDataPath derived_data_path build CODE_SIGNING_REQUIRED=NO
we get following error:
...
xcodebuild: error: Could not resolve package dependencies:
build-wrapper: connect to /tmp/build-wrapper-socket.27NmvM: Operation not permitted
build-wrapper: connect to /tmp/build-wrapper-socket.27NmvM: Operation not permitted
build-wrapper: connect to /tmp/build-wrapper-socket.27NmvM: Operation not permitted
build-wrapper: connect to /tmp/build-wrapper-socket.27NmvM: Operation not permitted
...
I think the error is related to Xcode resolving Swift packages. When I run the same xcodebuild
command without the build-wrapper package resolution works fine.
The build-wrapper.log
ends with these lines:
...
Thu Oct 15 09:56:37 2020: finalizing json file
Thu Oct 15 09:56:37 2020: returned with code: 74
I couldn’t find any information on the returned code.