title: Sonar scanner command found on Gitlab CI/CD
body: <p>I am trying to integrate Sonarqube into my project CI/CD pipeline on Gitlab. I have followed the documentation on Gitlab and Sonarqube to the best of my understanding to get the job included in my yml file.</p>
  <p>I am current experiencing the error as shown in the image below
  <a href="https://i.stack.imgur.com/e3nrc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e3nrc.png" alt="enter image description here" /></a></p>
  <p>This is my yml file script</p>
  <pre><code>build_project:
    stage: build
    script:
      - xcodebuild clean -workspace TinggIOS/TinggIOS.xcworkspace -scheme TinggIOS | xcpretty
      - xcodebuild test -workspace TinggIOS/TinggIOS.xcworkspace -scheme TinggIOS -destination 'platform=iOS Simulator,name=iPhone 11 Pro Max,OS=15' | xcpretty -s
    tags:
      - stage
    image: macos-11-xcode-12
  
  sonarqube-check:
    stage: analyze
    image:
      name: sonarsource/sonar-scanner-cli:latest
      entrypoint: [&quot;&quot;]
    variables:
      SONAR_USER_HOME: &quot;${CI_PROJECT_DIR}/.sonar&quot;  # Defines the location of the analysis task cache
      GIT_DEPTH: &quot;0&quot;  # Tells git to fetch all the branches of the project, required by the analysis task
    cache:
      key: &quot;${CI_JOB_NAME}&quot;
      paths:
        - .sonar/cache
    script:
      - sonar-scanner -Dsonar.qualitygate.wait=true
    allow_failure: true
    only:
      - merge_requests
      - feature/unit-test # or the name of your main branch
      - develop
    tags:
      - stage
  </code></pre>