sonar.projectKey=sfara_ios-sdk-platform-sonarcloud
sonar.organization=sfara
sonar.cfamily.build-wrapper-output=.
# This is the name and version displayed in the SonarCloud UI.
sonar.projectName=ios-sdk-platform-sonarcloud
sonar.projectVersion=1.0
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
sonar.sources=.
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8
I am trying to integrate the sonarcloud and github action for objective-c repo. But I keep getting this error:
java.lang.IllegalStateException: The "build-wrapper-dump.json" file was found empty. Please make sure that:
This is the build command line I am using for building wrapper: build-wrapper-macosx-x86 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} xcodebuild clean build -workspace Sfara-Platform-SDK-iOS/SfaraSDK.xcworkspace -scheme SfaraSDK-iOS -configuration Release -arch arm64 BITCODE_GENERATION_MODE=bitcode ONLY_ACTIVE_ARCH=NO -sdk iphoneos BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
and here is the build wrapper out dir: BUILD_WRAPPER_OUT_DIR: ../Sfara-Platform-SDK-iOS
Please help me. I have tried everything but nothing is working.
I misconfigured build wrapper output directory and I am trying to change it it throws an error and I cannot find build-wrapper.log file. How can i clean the cash or reset all building and start over again?
Hi Colin,
Thanks for responding. I have solved the problem I posted but know i see this: A few extra steps are needed for SonarCloud to analyze your code coverage Setup coverage analysis
I don’t see any code that analyzed. Actually I would see the code analyzed if i change some files. But i want to analyze the whole repo once and then analyze the code that have been changed. Is it possible?