ttypic / swift-klib-plugin

Gradle Plugin for injecting Swift code into Kotlin Multiplatform Mobile shared module
MIT License
193 stars 9 forks source link

Workaround for wrong SDK in build process for Xcode15 #13

Closed davidtaylor-juul closed 12 months ago

davidtaylor-juul commented 12 months ago

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

twyatt commented 12 months ago

We also tested this change against Xcode 14.3.1 (and it still works on the older version).

ttypic commented 12 months ago

Great! Thank you very much!

twyatt commented 11 months ago

Thanks @ttypic for the quick turnaround/release. ❤️

dusiema commented 11 months ago

Cool! Thank you! @twyatt @ttypic