Getting error : cannot execute binary file

  • ALM used : GitHub
  • CI system used : Circle CI
  • Languages of the repository : Swift
  • Error observed : No errors.
  • Steps to reproduce : Create new branches in GitHub, commit code, perform SonarCloud Analysis
  • Potential workaround : None identified

Hello Team,

We are getting the below error while running SonarCloud Analysis on our ios project.

/tmp/cache/scanner/sonar-scanner-4.6.2.2472-linux/bin/sonar-scanner: line 66: /private/tmp/cache/scanner/sonar-scanner-4.6.2.2472-linux/jre/bin/java: cannot execute binary file

/tmp/cache/scanner/sonar-scanner-4.6.2.2472-linux/bin/sonar-scanner: line 66: /private/tmp/cache/scanner/sonar-scanner-4.6.2.2472-linux/jre/bin/java: Undefined error: 0

Exited with code exit status 1
CircleCI received exit code 1

Kindly guide us how to fix this issue.

Thank you

How is your CircleCI pipeline configured?

Hi @Colin,

Thank you for your response !
We were able to fix this issue by adding the docker image.

Thanks

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