I am not getting “build-wrapper-dump.json” file was found empty anymore.
However, I have another problem now. My project on SonarQube says my main branch doesn’t have lines of code:
Your inclusion is configured to only analyze files in the directory from which the scan is launched. You would need to change it to sonar.inclusions=**/*.swift for example.
build_wrapper_output_directory sonar-property
sonar.cfamily.build-wrapper-output=build_wrapper_output_directory Command: build-wrapper-macosx-x86 --out-dir build_wrapper_output_directory xcodebuild clean build Result
FAILED Error:
SwiftGeneratePch normal arm64 Compiling\ bridging\ header (in target ‘myApp’ from project ‘myApp’)
bw-output
I can successfully run command above but I get error after I ran sonar-scanner sonar-property
sonar.cfamily.build-wrapper-output=bw-output Command
build-wrapper-macosx-x86 --out-dir bw-output xcodebuild clean Result
SUCCESS Sonar-scanner
FAILED Error java.lang.IllegalStateException: java.nio.file.NoSuchFileException: /mypath/bw-output/build-wrapper-dump.json
My understanding is build-wrapper-dump.json will be generated at the end of the build. Is it correct?