I've tried many things and followed this tutorial.
I have abig problem is that wen I plug in ground to reset my usb port disappears and I'm unable to flash the esp32 cam.
I work with a Mac on monterey.
All tutorials work with arduino uno but mine is leonardo.
The Leonardo is not a drop in replacement for the Uno.
The different pin configurations and processor architecture will cause you issues.
Either use an Uno or Nano classic, or find a tutorial that is for programming the ESP32 with a Leonardo or 32u4.