Build-wrapper-dump.json is empty for obj c

I am trying to scan obj c iOS project code but the build-wrapper is coming up empty. what could be the reason ?

build-wrapper, version 6.11 (macosx-x86). build log has be generated correctly but empty build wrapper .Wed Oct 21 23:47:31 2020: build-wrapper, version 6.11 (macosx-x86)
Wed Oct 21 23:47:31 2020: System name: Darwin Nodename: mac.local Release: 19.6.0 Version: Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64 Machine: x86_64
Wed Oct 21 23:47:31 2020: socket path: /tmp/build-wrapper-socket.67toBy
Wed Oct 21 23:47:31 2020: dynamic library found: /opt/sonarqube/bin/libinterceptor.dylib
Wed Oct 21 23:47:31 2020: command executed as: </opt/sonarqube/bin/build-wrapper-macosx-x86>
Wed Oct 21 23:47:31 2020: command line received: </usr/bin/xcodebuild -target Framework -project xcodeproj -configuration Release clean build GCC_PREPROCESSOR_DEFINITIONS=BUILD_NUMBER=0.1-28 NDEBUG=1 BUILD_DIR=Mobile OBJROOT=/Mobile SYMROOT=Mobile ARXAN_VAR=-Wcompile-gs,-DVERSION=0.1-28>

logs

dyld: warning: could not load inserted library ‘/opt/sonarqube/bin/libinterceptor.dylib’ into hardened process because no suitable image found. Did find:
/opt/sonarqube/bin/libinterceptor.dylib: code signature in (/opt/sonarqube/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.
/opt/sonarqube/bin/libinterceptor.dylib: stat() failed with errno=1
note: Using new build system

** CLEAN SUCCEEDED **

Wed Oct 21 23:48:14 2020: skipping process with pid: 11623
Wed Oct 21 23:48:53 2020: finalizing json file
Wed Oct 21 23:48:53 2020: returned with code: 0

command
/opt/sonarqube/bin/build-wrapper-macosx-x86 --out-dir sonarq xcodebuild clean build

what could be the reason ?

is anybody going to help here on the issue pls ?

Hi Rahul! Welcome to the SonarSource Community!

Can you give some more information?

  1. Did you set sonar.cfamily.build-wrapper-output=sonarq in your “sonar-project.properties” file?
  2. Are you running the build-wrapper-macosx-x86 command within your project folder where your .xcodeproj file lives?
  3. What version of SonarQube and Xcode are you using?
  4. Have you been able to perform a successful sonar scan on an Objective-C project before?
  5. Please show the entire log output when you run the /opt/sonarqube/bin/build-wrapper-macosx-x86 --out-dir sonarq xcodebuild clean build command.
  6. Please show the contents of “build-wrapper-dump.json” and “build-wrapper.log” files from your “sonarq” folder.

This other post may have a similar problem/solution for you: Scanning Objc code failed

Joe