Does someone knows how to configure the wrapper for swift projects?

Template for a good new topic, formatted with Markdown:

  • ALM used (GitHub, Bitbucket Cloud, Azure DevOps)
  • CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI
    Gitlab
  • Scanner command used when applicable (private details masked)
  • Languages of the repository
    swift
  • Only if the SonarCloud project is public, the URL
    • And if you need help with pull request decoration, then the URL to the PR too
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
  • Steps to reproduce
  • Potential workaround

Hey there.

Unless you have C/C++/Objective code, there’s no need! If there is such code, I assume you run an xcodebuild which is the build command you want to wrap.

Also, please don’t just write a title and leave your post at the default template. :slight_smile:

Sorry, this is my first post in this community.

The reason I used the build-wrapper is because of this error:

ERROR: Error during SonarScanner execution java.lang.UnsupportedOperationException: The only way to get an accurate analysis of C/C++/Objective-C files is by using the SonarSource build-wrapper and setting the property "sonar.cfamily.build-wrapper-output", but it was not specified.

but no C specific code is used

Then if I run the build-wrapper, it finds no C type files and the scanner fails with error “0 files found” from the wrapper output

I now added the sonar-porperties to skip C analysis and it passed. Thanks

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.