kabiroberai / swift-toolchain-linux

Swift toolchain for Linux
MIT License
11 stars 5 forks source link

Compiling with clang 13 using an iOS 16 SDK and a lower deployment target will crash at runtime on older iOS versions #9

Open Luki120 opened 11 months ago

Luki120 commented 11 months ago

See title. This happens on Linux (not Darwin, tested) because some symbols were moved from libobjc to Foundation on iOS 16+ sdks, so e.g URLQueryItem or JSONDecoder from Combine will crash on devices running < iOS 16. Solution would be to update to clang 15 or higher, since it was patched there