Is there a way to get the build wrapper to work on a Mac M2 machine?

Hi @DivyaMariappan, and welcome to our community!

You are using an extremely old unsupported version of SonarQube. Mac M1 did not exist back then.
You are missing a lot of great features in general and for C++ in particular.
I highly recommend upgrading.

As for what you are asking for about the build-wrapper, it’s been available since SonarQube 10.2

Cheers