You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running Catalina 10.15.6 (19G2021), yet because of Float16 I'm unable to compile swift-numerics when targeting macOS.
Swift compiler is reporting the correct version Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1), yet I don't understand why it's trying to compile Float16 when it's explicitly marked as unavailable for macOS. Building for an iOS device or the iOS simulator works fine. I tried using swift-numerics with a sample Xcode project for a macOS app as well but it fails with the same issues.
Hi @b3ll, I was able to reproduce this. The basic issue is that 12A7209 contains a macOS 10.15 SDK (which correctly doesn't have Float16), rather than a macOS 10.16 SDK. By contrast it has an iOS 14 SDK, so there's no issue for iOS platforms. I'll have to think a little bit about what the best way to handle this in Swift Numerics is, but I'll try to get a fix up later today. In the very-short term, you can pin to 0.0.6 as a workaround.
I'm running Catalina 10.15.6 (19G2021), yet because of
Float16
I'm unable to compile swift-numerics when targeting macOS.Swift compiler is reporting the correct version
Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1)
, yet I don't understand why it's trying to compileFloat16
when it's explicitly marked asunavailable
for macOS. Building for an iOS device or the iOS simulator works fine. I tried usingswift-numerics
with a sample Xcode project for a macOS app as well but it fails with the same issues.Any idea what's up?
swift build
Xcode
The text was updated successfully, but these errors were encountered: