I am not able to upload code on my esp32s board

There isn’t even a serial device for your board. This either means that

  1. your development board is dead
  2. you have used a faulty USB cable or one that does not have data connections (power-only)
  3. Some device in between the USB port and your computer is faulter (like a USB hub)
  4. you have installed the wrong drivers for your usb-to-serial converter

Regarding point 4 and MacOS, maybe check out Mac upload fails to /dev/tty.usbmodem52D60049421. I’m not expert on that field.