versions used :
- OS : Mac OS X 10.15.7
- Xcode : 11.6
- SonarQube : 7.6 (with objective-c and swift plugins installed)
error observed :
$ build-wrapper --out-dir out xcodebuild -project projectName.xcodeproj -scheme projectName -configuration Release clean build
27-Oct-2020 12:06:12 [12:06:12]: ▸ dyld: warning: could not load inserted library '/usr/local/bin/build-wrapper-macosx-x86/libinterceptor.dylib' into hardened process because no suitable image found. Did find:
27-Oct-2020 12:06:12 [12:06:12]: ▸ /usr/local/bin/build-wrapper-macosx-x86/libinterceptor.dylib: code signature in (/usr/local/bin/build-wrapper-macosx-x86/libinterceptor.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
27-Oct-2020 12:06:13 [12:06:13]: ▸ Command line invocation:
27-Oct-2020 12:06:13 [12:06:13]: ▸ /Applications/Xcode11.6.app/Contents/Developer/usr/bin/xcodebuild -project projectName.xcodeproj -scheme projectName -configuration Release clean build
27-Oct-2020 12:06:13 [12:06:13]: ▸ dyld: warning: could not load inserted library '/usr/local/bin/build-wrapper-macosx-x86/libinterceptor.dylib' into hardened process because no suitable image found. Did find:
27-Oct-2020 12:06:13 [12:06:13]: ▸ /usr/local/bin/build-wrapper-macosx-x86/libinterceptor.dylib: code signature in (/usr/local/bin/build-wrapper-macosx-x86/libinterceptor.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
27-Oct-2020 12:06:13 [12:06:13]: ▸ /usr/local/bin/build-wrapper-macosx-x86/libinterceptor.dylib: stat() failed with errno=1
I have no idea why this is happening.
It looks like this issue : OSX Mojave fails with build-wrapper-macosx-x86 (CompileXIB)
Any help would be much appreciated