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

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