Getting Error while trying to run sonar scanner- iOS Project

sonarcfamily
(Sushant) #1

We are using Sonarqube v7.6.
While running it is failing with below error

INFO: [pool-2-thread-1]
ERROR: Exception in thread pool-2-thread-1
java.lang.IllegalStateException: exit code != 0
at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:54)
at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:25)
at com.sonar.cpp.plugin.CFamilySensor.lambda$process$4(CFamilySensor.java:323)
at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:53)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:14.433s
INFO: Final Memory: 123M/786M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: java.lang.IllegalStateException: exit code != 0
ERROR: Caused by: exit code != 0
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.

(Massimo Paladin) #2

Hi @Sushant,

could you please rerun with the following property and share the generated sonar-cfamily.reproducer file?

sonar.cfamily.reproducer=/Users/dinb/bamboo-agent-home/xml-data/build-dir/MOBILE-CARS-JOB1/AppRedesign_iPhone/Classes/Common/Utilities/Utilities.m

(Sushant) #3

Hi @mpaladin where can I find sonar-cfamily.reproducer file ?

(Sushant) #4

Got the file ,how can I share the file ?

(Massimo Paladin) #5

Hi @Sushant,

I sent you a private message.