Hi,
I’m attempting to analyse some iOS code as part of a wider project using SonarCloud. It’s built in Objective C rather than Swift and I’m encountering an error with the build-wrapper-macosx-x86
Steps:
I run:
xcodebuild -workspace App.xcworkspace -scheme Target1 -configuration Release -sdk iphoneos12.1 clean build
This succeeds and I have a fully built file with no errors.
If I then try to run it as follows:
build-wrapper-macosx-x86 --out-dir bw_output xcodebuild -workspace App.xcworkspace -scheme Target1 -configuration Release -sdk iphoneos12.1 clean build
I get the following errors:
dyld: warning: could not load inserted library '/Users/mike/dotfiles/bin/libinterceptor.dylib' into hardened process because no suitable image found. Did find:
/Users/mike/dotfiles/bin/libinterceptor.dylib: code signature in (/Users/mike/dotfiles/bin/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.
/Users/mike/dotfiles/bin/libinterceptor.dylib: stat() failed with errno=1
dyld: warning: could not load inserted library '/Users/mike/dotfiles/bin/libinterceptor.dylib' into hardened process because no suitable image found. Did find:
/Users/mike/dotfiles/bin/libinterceptor.dylib: code signature in (/Users/mike/dotfiles/bin/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.
/Users/mike/dotfiles/bin/libinterceptor.dylib: stat() failed with errno=1
note: Using new build system
Followed by:
** BUILD FAILED **
The following build commands failed:
DataModelCompile
Anyone able to suggest anything here?
Useful Info:
macOS Mojave 10.14.1
XCode 10.1 (10B61)