Error during SonarScanner execution in Mac OS for Swift language

I have SonarQube version: 9.2.4.50792 running on Mac OS Ventura 13.0.1
whenever I try to run these commands

sonar-scanner
-Dsonar.projectKey=xyz
-Dsonar.sources=.
-Dsonar.host.url=https://sonarqube.mycompany.com
-Dsonar.login=123asd12

it gives this error:
INFO: SonarScanner 4.6.2.2472

INFO: Java 11.0.17 Alpine (64-bit)

INFO: Linux 5.15.49-linuxkit aarch64

INFO: ------------------------------------------------------------------------

INFO: EXECUTION FAILURE

INFO: ------------------------------------------------------------------------

INFO: Total time: 2:30.223s

INFO: Final Memory: 5M/24M

INFO: ------------------------------------------------------------------------

ERROR: Error during SonarScanner execution

ERROR: Not authorized. Please check the properties sonar.login and sonar.password.

ERROR:

ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

Hi,

Welcome to the community!

You’ve redacted the sensitive values in your example command :clap:, so I can’t be sure: are you passing an analysis token in sonar.login, or is that an actual login?

And if the former, is the token from an account that has analysis permissions on the project in question? Because the error is about permissions.

 
Ann