Thanks for your reply. Did you mean this below text?
/Users/runner/.sonar/build-wrapper-macosx-x86/libinterceptor.dylib: code signature in (/Users/runner/.sonar/build-wrapper-macosx-x86/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.
dyld: warning: could not load inserted library ‘/Users/runner/.sonar/build-wrapper-macosx-x86/libinterceptor.dylib’ into hardened process because no suitable image found. Did find:
/Users/runner/.sonar/build-wrapper-macosx-x86/libinterceptor.dylib: code signature in (/Users/runner/.sonar/build-wrapper-macosx-x86/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.
/Users/runner/.sonar/build-wrapper-macosx-x86/libinterceptor.dylib: stat() failed with errno=1
Is that really all you get? Also, I’m realizing you tagged this with swift. Are you analyzing a Swift project? Because you don’t need the build-wrapper for that.
Does your project also contain C, C++ or Objective-C? Could you describe the path you took through the tutorial? Because I’ve just gone through the tutorial for a Swift project and I don’t get anything about the build-wrapper.
Hi,
I added those framework in git-ignore. Means not analysing those frameworks but still facing same issue. Also the tutorial link I shared above have configuration for swift project including build-wrapper. Can you please suggest/share configuration for swift project without wrappper.
Hi Ann,
After stripping out all the build-wrappper stuff and updating sonar-project.properties file, I am facing this issue,
FO: CFamily plugin version: 6.36.0.52033
INFO: Using build-wrapper output: /Users/runner/work/1/s/build_wrapper_output_directory/build-wrapper-dump.json
INFO: Available processors: 3
INFO: Using 3 threads for analysis.
WARN:
CFamily plugin supports incremental analysis with the use of a cache:
* if you do not want to enable cache
please explicitly disable it
by setting the following property to your analysis:
sonar.cfamily.cache.enabled=false
* to enable cache please specify the following 2 options:
sonar.cfamily.cache.enabled=true
sonar.cfamily.cache.path=relative_or_absolute_path_to_cache_location
* visit the documentation page for more information
https://docs.sonarcloud.io/advanced-setup/languages/c-c-objective-c/
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 59.124s
INFO: Final Memory: 70M/237M
INFO: ------------------------------------------------------------------------
##[error]ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: java.nio.file.NoSuchFileException: /Users/runner/work/1/s/build_wrapper_output_directory/build-wrapper-dump.json
at com.sonar.cpp.plugin.BuildWrapperJsonReader.readCaptures(BuildWrapperJsonReader.java:90)
at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:781)
It looks like C++ files are still being detected in the project. I’m not sure at what level a .gitignore exclusion kicks in. Can you explicitly exclude them, using a **/*.cpp (or whatever the relevant extensions is) pattern?
Hi Ann,
Thank you very much for your guidance to successfully analyse my swift project which was due in my bucket for very long time.
By adding below links in sonar-properties file, I am able to analyse project successfully.