It does not work at SonarCloud

Hi members.

We wanna use SonarCloud to manage Code Coverage for iOS and Android.
then it worked well at local.
however it did not work well at Sonar Cloud.

when i run this command

../sonar-scanner-4.7.0.2747-macosx/bin/run-sonar-swift.sh  -v

it said the following error.

...........ERROR: Error during SonarScanner execution
ERROR: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
ERROR - Command 'sonar-scanner ' failed with error code: 2

this project is swift for ios application.

i am trying it now so i don use CI yet.

Repository is in Github, but it is a private repository.

then i checked our project settings.
project key and organization exist and SONAR_TOKEN exists and being used.

so why does this error happen?
i am not sure.

Hey there.

run-sonar-swift is not developed or maintained by SonarSource.

I would suggest following the tutorial in the SonarCloud UI when creating a new project – rather than this script.

Thank you for your reply.
where is this tutorial for swift?

When you create a new project is SonarCloud, you should be presented a tutorial based on the Analysis Method you choose. Here – you would be interested in Manual > Other


I can not find what you show.

BTW i run this command

sonar-scanner -Dsonar.projectKey=xxxxx -Dsonar.organization=xxxxx -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=xxxxxxxxx -Dsonar.coverageReportPaths=sonarqube-generic-coverage.xml -X

but it shows almost same error.

14:35:53.771 DEBUG: POST 404 https://sonarcloud.io/api/ce/submit?organization=xxxxxx&projectKey=xxxxxxx&projectName=twallet-ios | time=7483ms
14:35:53.812 DEBUG: eslint-bridge server will shutdown
14:35:58.802 DEBUG: eslint-bridge server closed
14:36:01.673 INFO: ------------------------------------------------------------------------
14:36:01.673 INFO: EXECUTION FAILURE
14:36:01.673 INFO: ------------------------------------------------------------------------
14:36:01.675 INFO: Total time: 2:27.265s
14:36:01.927 INFO: Final Memory: 130M/468M
14:36:01.930 INFO: ------------------------------------------------------------------------
14:36:01.930 ERROR: Error during SonarScanner execution
Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator

sorry, it was resolved.
cause is permission.