Run Code analysis Failed. ##[error]ERROR: String is not parsed (file Controller.swift, line 1)

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

Hi Team
I have Configured SonarQube Developer Edition trial in one of my remote machine.
Version: sonarqube-developer-
and launched using 9000.

This is ios mobile application. (Language: Swift and Objective C)

Have created a Pipeline in VSTS and added Sonarqube task.

Downloaded VSTS Agent, Build wrapper and placed in macOS machine.

when I executed the PIPELINE, It is getting failed in Run code Analysis task.

##[error]ERROR: String is not parsed (file RRDHub/RRDHub/ProjectModules/LoginView/LogInViewController.swift, line 1)
##[error] Is a directory
##[error]at com.sonar.swift.plugin.B.A(Unknown Source
##[error]at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(

Hello @vaasavi
and thanks for joining our Community!

Let’s do this in small steps, and one at a time.

Were you able to build the project and analyze it locally (or at least outside of an Azure Devops pipeline)? If not the case I strongly recommend that you do so in order to rule out anything related to Azure Devops environment and pipeline).

If you have some error with a ‘local’ scanning of this project, please attach your full logs, with verbose mode enabled (-X added to sonar-scanner command line).

When you have a successful ‘local’ analysis, we’ll dig into any pipeline integration issue.

Best regards