Embedded Swift on ESP32 with IDF: error on build

I think you're now hitting a separate issue: If you don't have Xcode installed, or if you have the CommandLineTools in /Library/Developer/CommandLineTools selected as the default tools (via xcode-select), then selecting a toolchain via the TOOLCHAINS env var doesn't work. Are you in of these situations? If yes, the workaround would be to either install Xcode and xcode-select it, or to explicitly add /Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin to the PATH env var.

3 Likes