Error-“build-wrapper-dump.json” file was found but 0 C/C++/Objective-C files were analyzed

We are trying to analyse our swift/objective C code using the license key shared by you.

We used the following command to build compilation database:

build-wrapper-macosx-x86 --out-dir build_wrapper_output_directory xcodebuild clean build

After executing above command, we got complete build-wrapper-dump.json file

And after that we tried running sonar scanner and received following error:

ERROR: “Error during Sonar Scanner execution

java.lang.IllegalStateException: The “build-wrapper-dump.json” file was found but 0 C/C++/Objective-C files were analyzed. Please make sure that:

Edition: Developer
Version: 9.5.0.56709

1 Like

Hello @dmontymeldreena and welcome to our community!

There could be multiple reasons for this error. To pinpoint the issue, could you share with us:

  • The build-wrapper-dump.json and build-wrapper.log files;
  • The exact command you used to run the scanner and the directory you ran it from;
  • The sonar-project.properties file if you created one.
  • The complete output generated by the scanner when run in debug (-X).

If you think those files contain private information, let us know, and we’ll send you a private message that will allow you to send it privately.

Thanks.

Can you send me a private message