Seeing this when building swift package from command-line, but not Xcode (macOS 15, Xcode 16)
Put Xcode toolchain bin dir first on PATH, to use that swift
swift build of package
Not setting TOOLCHAIN
It's unclear to me how swift discovers libraries in Xcode or from the command-line, or how better to configure the swift toolchain used for command-line builds
Topic:
Programming Languages
SubTopic:
Swift
Tags: