Thanks; that's helpful. I may submit a PR to esp32-led-strip-sdk to do this in the example.
I'm still having what appears to be the same trouble, though. Here's what I did:
- I downloaded the May 26th Development Snapshot for Xcode
- ran the pkg installer; used "install for everyone"; got a successful installation
- in my project dir, I did:
idf.py fullclean
and manually removed build/
- ran these:
❯ plutil -p /Library/Developer/Toolchains/swift-latest.xctoolchain/Info.plist | grep CFBundleIdentifier
"CFBundleIdentifier" => "org.swift.600202405261a"
❯ export TOOLCHAINS=org.swift.600202405261a
. ~/esp/v5.2.1/esp-idf/export.sh
(output omitted)
idf.py set-target esp32c6
(output omitted)
❯ idf.py build
Executing action: all (aliases: build)
Running ninja in directory /Users/sean/src/swinkenlights/build
Executing "ninja all"...
[10/948] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[29/948] Generating _swiftcode.o
FAILED: esp-idf/main/_swiftcode.o /Users/sean/src/swinkenlights/build/esp-idf/main/_swiftcode.o
cd /Users/sean/src/swinkenlights/build/esp-idf/main && /Library/Developer/CommandLineTools/usr/bin/swiftc -target riscv32-none-none-eabi -Xfrontend -function-sections -enable-experimental-feature Embedded -wmo -parse-as-library -Osize $( echo '/Users/sean/src/swinkenlights/build/config;/Users/sean/src/swinkenlights/main;/Users/sean/src/swinkenlights/build/config;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/newlib/platform_include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/freertos/config/include;/Users/sean/esp/v5.2.1/esp-idf/components/freertos/config/include/freertos;/Users/sean/esp/v5.2.1/esp-idf/components/freertos/config/riscv/include;/Users/sean/esp/v5.2.1/esp-idf/components/freertos/FreeRTOS-Kernel/include;/Users/sean/esp/v5.2.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include;/Users/sean/esp/v5.2.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos;/Users/sean/esp/v5.2.1/esp-idf/components/freertos/esp_additions/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_hw_support/include;/Users/sean/esp/v5.2.1/esp-idf/components/esp_hw_support/include/soc;/Users/sean/esp/v5.2.1/esp-idf/components/esp_hw_support/include/soc/esp32c6;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_hw_support/port/esp32c6/.;/Users/sean/esp/v5.2.1/esp-idf/components/esp_hw_support/port/esp32c6/private_include;/Users/sean/esp/v5.2.1/esp-idf/components/heap/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/log/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/soc/include;/Users/sean/esp/v5.2.1/esp-idf/components/soc/esp32c6;/Users/sean/esp/v5.2.1/esp-idf/components/soc/esp32c6/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/hal/platform_port/include;/Users/sean/esp/v5.2.1/esp-idf/components/hal/esp32c6/include;/Users/sean/esp/v5.2.1/esp-idf/components/hal/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_rom/include;/Users/sean/esp/v5.2.1/esp-idf/components/esp_rom/include/esp32c6;/Users/sean/esp/v5.2.1/esp-idf/components/esp_rom/esp32c6;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_common/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_system/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_system/port/soc;/Users/sean/esp/v5.2.1/esp-idf/components/esp_system/port/include/riscv;/Users/sean/esp/v5.2.1/esp-idf/components/esp_system/port/include/private;/Users/sean/esp/v5.2.1/esp-idf/components/riscv/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/lwip/include;/Users/sean/esp/v5.2.1/esp-idf/components/lwip/include/apps;/Users/sean/esp/v5.2.1/esp-idf/components/lwip/include/apps/sntp;/Users/sean/esp/v5.2.1/esp-idf/components/lwip/lwip/src/include;/Users/sean/esp/v5.2.1/esp-idf/components/lwip/port/include;/Users/sean/esp/v5.2.1/esp-idf/components/lwip/port/freertos/include;/Users/sean/esp/v5.2.1/esp-idf/components/lwip/port/esp32xx/include;/Users/sean/esp/v5.2.1/esp-idf/components/lwip/port/esp32xx/include/arch;/Users/sean/esp/v5.2.1/esp-idf/components/lwip/port/esp32xx/include/sys;/Users/sean/src/swinkenlights/build/config;/Users/sean/src/swinkenlights/managed_components/espressif__led_strip/include;/Users/sean/src/swinkenlights/managed_components/espressif__led_strip/interface;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/driver/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/deprecated;/Users/sean/esp/v5.2.1/esp-idf/components/driver/analog_comparator/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/dac/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/gpio/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/gptimer/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/i2c/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/i2s/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/ledc/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/mcpwm/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/parlio/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/pcnt/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/rmt/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/sdio_slave/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/sdmmc/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/sigma_delta/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/spi/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/temperature_sensor/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/touch_sensor/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/twai/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/uart/include;/Users/sean/esp/v5.2.1/esp-idf/components/driver/usb_serial_jtag/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_pm/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_ringbuf/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/efuse/include;/Users/sean/esp/v5.2.1/esp-idf/components/efuse/esp32c6/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_mm/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/mbedtls/port/include;/Users/sean/esp/v5.2.1/esp-idf/components/mbedtls/mbedtls/include;/Users/sean/esp/v5.2.1/esp-idf/components/mbedtls/mbedtls/library;/Users/sean/esp/v5.2.1/esp-idf/components/mbedtls/esp_crt_bundle/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/mbedtls/mbedtls/include/;/Users/sean/esp/v5.2.1/esp-idf/components/mbedtls/mbedtls/include/;/Users/sean/esp/v5.2.1/esp-idf/components/mbedtls/mbedtls/include/;/Users/sean/esp/v5.2.1/esp-idf/components/mbedtls/mbedtls/3rdparty/everest/include;/Users/sean/esp/v5.2.1/esp-idf/components/mbedtls/mbedtls/include;/Users/sean/esp/v5.2.1/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m;/Users/sean/esp/v5.2.1/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m/p256-m;/Users/sean/esp/v5.2.1/esp-idf/components/mbedtls/mbedtls/include;/Users/sean/esp/v5.2.1/esp-idf/components/esp_bootloader_format/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_app_format/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/bootloader_support/include;/Users/sean/esp/v5.2.1/esp-idf/components/bootloader_support/bootloader_flash/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/src/swinkenlights/build/config;/Users/sean/src/swinkenlights/build/config;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_partition/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/app_update/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/spi_flash/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/pthread/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_timer/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/app_trace/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_event/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/nvs_flash/include;/Users/sean/esp/v5.2.1/esp-idf/components/spi_flash/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_phy/include;/Users/sean/esp/v5.2.1/esp-idf/components/esp_phy/esp32c6/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/vfs/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_netif/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/wpa_supplicant/include;/Users/sean/esp/v5.2.1/esp-idf/components/wpa_supplicant/port/include;/Users/sean/esp/v5.2.1/esp-idf/components/wpa_supplicant/esp_supplicant/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_coex/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_wifi/include;/Users/sean/esp/v5.2.1/esp-idf/components/esp_wifi/wifi_apps/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/unity/include;/Users/sean/esp/v5.2.1/esp-idf/components/unity/unity/src;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/cmock/CMock/src;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/console;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/http_parser;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp-tls;/Users/sean/esp/v5.2.1/esp-idf/components/esp-tls/esp-tls-crypto;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_adc/include;/Users/sean/esp/v5.2.1/esp-idf/components/esp_adc/interface;/Users/sean/esp/v5.2.1/esp-idf/components/esp_adc/esp32c6/include;/Users/sean/esp/v5.2.1/esp-idf/components/esp_adc/deprecated/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_eth/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_gdbstub/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_hid/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/tcp_transport/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_http_client/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_http_server/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_https_ota/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_psram/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_lcd/include;/Users/sean/esp/v5.2.1/esp-idf/components/esp_lcd/interface;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/protobuf-c/protobuf-c;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/protocomm/include/common;/Users/sean/esp/v5.2.1/esp-idf/components/protocomm/include/security;/Users/sean/esp/v5.2.1/esp-idf/components/protocomm/include/transports;/Users/sean/esp/v5.2.1/esp-idf/components/protocomm/include/crypto/srp6a;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/esp_local_ctrl/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/espcoredump/include;/Users/sean/esp/v5.2.1/esp-idf/components/espcoredump/include/port/riscv;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/wear_levelling/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/sdmmc/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/fatfs/diskio;/Users/sean/esp/v5.2.1/esp-idf/components/fatfs/src;/Users/sean/esp/v5.2.1/esp-idf/components/fatfs/vfs;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/idf_test/include;/Users/sean/esp/v5.2.1/esp-idf/components/idf_test/include/esp32c6;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/ieee802154/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/json/cJSON;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/mqtt/esp-mqtt/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/nvs_sec_provider/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/spiffs/include;/Users/sean/src/swinkenlights/build/config;/Users/sean/src/swinkenlights/build/config;/Users/sean/src/swinkenlights/build/config;/Users/sean/esp/v5.2.1/esp-idf/components/wifi_provisioning/include;/Users/sean/src/swinkenlights/build/config' | tr ';' '\n' | sed -e 's/\(.*\)/-Xcc -I\1/g' ) $( echo '/Users/sean/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/lib/gcc/riscv32-esp-elf/13.2.0/include /Users/sean/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/lib/gcc/riscv32-esp-elf/13.2.0/include-fixed /Users/sean/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/riscv32-esp-elf/sys-include /Users/sean/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/riscv32-esp-elf/include' | tr ' ' '\n' | sed -e 's/\(.*\)/-Xcc -I\1/g' ) -import-bridging-header /Users/sean/src/swinkenlights/main/BridgingHeader.h /Users/sean/src/swinkenlights/main/Main.swift /Users/sean/src/swinkenlights/main/LedStrip.swift -c -o /Users/sean/src/swinkenlights/build/esp-idf/main/_swiftcode.o
<unknown>:0: error: unknown argument: '-import-bridging-header'
[42/948] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/ecp.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the /Users/sean/src/swinkenlights/build/log/idf_py_stderr_output_43189 and /Users/sean/src/swinkenlights/build/log/idf_py_stdout_output_43189
(I also ran it explicitly as TOOLCHAINS=org.swift.600202405261a idf.py build
(after a clean, set-target
) with the same results.)
(Edit: I had my ~/Libaray
in the path I used with plutil
, but I tried both my "me only" and "for everyone" installs, and they're the same ID.)