After upgrading to Xcode15 we started seeing this warning: using sysroot for 'iPhoneOS' but targeting 'MacOSX' followed by a bunch of C compilation errors and the build would fail.
Added a workaround that injects the sysroot to the underlying C compiler which feels like it is a bug in swift build as one would expect the -sdk parameter to propagate down the toolchain, but it appears it does not.
After upgrading to Xcode15 we started seeing this warning:
using sysroot for 'iPhoneOS' but targeting 'MacOSX'
followed by a bunch of C compilation errors and the build would fail.Added a workaround that injects the sysroot to the underlying C compiler which feels like it is a bug in
swift build
as one would expect the-sdk
parameter to propagate down the toolchain, but it appears it does not.Fixes #11