ERROR: ld.so: object

Hello,

We see two potential issues in your situation:

Running xcodebuild on linux

As far as I know, it’s not possible to run xcodebuildr from a linux machine, you have to be on a Mac. So either you run the build-wrapper on a Mac box, or, if the code is portable, you may run it from Linux, but you will need a command-line that does not involve xcodebuild.

By the way, it you try to run build-wrapper-linux-x86-64 --out-dir bw_output {something} and it does not work, the first step would be to check that running {something} independently works.

Potential issue with libinterceptor

You might be affected by the same issue that was reported in this thread: SonarQube - C++ - Ubuntu - build-wrapper LD_PRELOAD Error

To check if this is the case, you can run the command:

strace -f -E LD_DEBUG=all ./build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output /bin/echo test >stdout.txt 2>stderr.txt

And search if the resulting output contains libinterceptor-haswell.so . If so, you are in the same situation, and you can work around it by using the same way that was proposed there:

If not, we don’t yet know what happens, and we might be interested in getting the files generated by this strace command to look at them more deeply, as well as the logs from the build wrapper (they will be in the bw_output folder).

Regards,