ESP32: problem with compilation on MacOS 12.3 Monterey

here is a solution:

https://forum.arduino.cc/t/mac-os-update-killed-esp32-sketch/969580/8?u=nadym