Compilation error -NANO ESP32

Hello
During sketch compillation the error message is appearing see below:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

exit status 1

Compilation error: exit status 1
Anybody can help me ?
Stan

Hi, can you share the complete verbose output? Which sketch are you uploading to the board?

Hi Team
I' ve send the response via email , but I don't know if the one reach you.
Here is more information

  1. I am using Apple computer with latest version of the sytem and Safari.
    2 I am using IDE latest version ( 2.2.1)
  2. For the NANO ESP32 the program ARDUINO ESP Boards by Arduino v.2.0.13 is installed
  3. For each of 5 sketches I was trying to compile , all was terminated with fault
    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

exit status 1

Compilation error: exit status 1
The Sketches was from simplest ( reading analog input ) to SIMPLE BLE from examples presented for NANO ESP 32 boards.
.
So let me know if you need more information from my side
Thank you in advance
Stan

Can you try the blink sketch from the example to see if it can be compiled?

Have not seen the mail, if you have received a ticket number can you share that with me?

As requested the simplest blink sketch was used:
#define LED 2

void setup() {

  • pinMode(LED, OUTPUT);*
    }

void loop() {

  • digitalWrite(LED, HIGH);*
  • delay(100);*
  • digitalWrite(LED, LOW);*
  • delay(100);*
    }

and the same compilation error - as in my previous information.

And in the mail I cannot find any ticket number
Stan.

Unfortunately, I was not able to find any tickets open linked to your username. But i think your issue is similar to the one posted here.

Seems similar. But I do not have the information about necessity of such an installation.
I've checked at my MAC and at the indicated directory ( /Library/Developer/CommandLineTools) there is no XCRUN.

  1. Do I need to install XCRUN ?
  2. If yes- from where I can get the program.
    Thanks
    Stan
1 Like

Try running this in Terminal:

xcode-select --install
2 Likes

Hi
The problem solved.
Thank you.

1 Like