aplogies for postig about this in a couple of different posts.
I have a Mac M2, and struggled after downloading the latest Lazarus.
At first, nothing would run in debug.
I was eventually advised to add compiler options (which are not obvious to a newbie like me)
You find that in
Project/ Project Options /Custom Options
In there, adding -WM10.15 got me to a point where I could run Hello World level apps in debug.
But as soon as I tried to compile a stand alone version, that failed, and I almost deleted the whole thing as a bad job.
However, on a whim, I changed the option to say -WM10.14 and it now builds.
Give that a try?
(Despite the widespread posts about how it is possible to cross compile for Mac, Windows, Android... I can find no way to achieve that yet, but baby steps...)