Closed arlovip closed 2 years ago
The fact that it's a OCLint
version problem. I'm using Xcode 13.2.1
, but my OCLint
version is 20.01
. So I have to upgrade OCLint
version to 22.02
compatible for Xcode
version. Sorry for this issue. It's not sonar-swift
problem. Thanks for this free plugin. Closing the issue.
New Issue Checklist
Issue Description
Run
run-sonar.sh
in the root directory of a new pureObjective-C
project. It failed with the exit code:6
as follows:Note: I can run
run-sonar-swift.sh
successfully in a new pureSwift
project and upload the result to sonar web server.Command executed
Run command:
run-sonar.sh
Complete output when running fastlane, including the stack trace and command used
Environment
It seems that
oclint-json-compilation-database -v --include ...
inrun-sonar.sh
script failed with error code: 6. Besides, it ran successfully if I replace the script content inrun-sonar.sh
with the following and there is nothing undersonar-reports
dir:My questions:
How to fix the error above? It does not seem to be
OCLint
's problem but therun-sonar.sh
provided bysonar-swift
.How do I use
sonar-swift
in a mixed project with bothSwift
andObjective-C
?When I added an OC file to a pure
Swift
project, therun-sonar-swift.sh
won't work as expected. From now on, I just get it work in a pureSwift
project. But I'd like to have it work in a mixed objc and swift project.Any help will be appreciated so much.