'Use Xcode for microcontroller development (ESP32)

I would like to use Xcode to develop apps for the ESP32 microcontroller. Code is written in C++. I don't know if it's possible to configure Xcode in such a way that it's using external tools, to build/flash and monitor the device. I can do these tasks from the terminal, using these commands: This builds the project

export IDF_TOOLS_PATH="/Users/damiandudycz/Other/Espressif/tools"
. ~/Other/Espressif/esp-idf/export.sh
idf.py set-target esp32 && idf.py build

This will flash the device and run monitoring of it's output

export IDF_TOOLS_PATH="/Users/damiandudycz/Other/Espressif/tools"
. ~/Other/Espressif/esp-idf/export.sh
idf.py flash && idf.py monitor

Is it possible to make Xcode do call scripts when building, and display the output in its console?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source