Errors when running sonar swit

  • SonarQube Version: 8.3.0.34182
    I am trying to run sonar-swift on my project and I am getting Build failed error and all swift class files are shown with the following build commands failed:

CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler

My project does run without problems from XCode.
My project contains both objective-C and swift files.