Error compiling, in MAC Big Sur, when I try with board: "AI Thinker ESP32-CAM".
bash: line 0: [: too many arguments
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
exit status 64
/Applications/Arduino.app/Contents/Java/arduino-builder returned 64
Error compiling for board ESP32 Dev Module.
I'm using "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json" v1.0.5-rc7, to solve bug ...symbol missing... in Big Sur.
OK in Windows using standard "https://dl.espressif.com/dl/package_esp32_index.json" v 1.0.4.
It compiles OK if I open Arduino IDE and paste my sketch to the opened editor window.
If I open my sketch from the File menu, it opens a new editor window and, when compiling, I receive the error.
I think I found the issue.
This error throws when the directory path has spaces.
OK: [desktop]/x_x/mySketch/mySketch.ino
NOK: [desktop]/x x/mySketch/mySketch.ino
It seems an IDE issue.