current OSX Build

I am building 3.6.1 on Monterey using Xcode 13 (12.0 SDK) and I get the black screen.

Where do I set SDK/target in build scripts? Is it in build.sh and the top-level CMakeLists.txt?

What are the settings?

Thanks