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
{{ message }}
Repository navigation
Bug: failure to compile in Xcode 16.2 with Float16 type, missing @available for >= ios 14.0 #589
Tried updating my project’s package dependency on usearch from 2.17.1 to 2.17.6 — got compilation errors suggesting to mark all the Float16 methods as @available for only iOS 14 or later. I suppose an alternative could be declaring minimum supported OS versions in the Package.swift.
Steps to reproduce
In my project targeting only iOS 17 or later, adding usearch 2.17.6 to package dependencies is enough to surface this compilation error.
Expected behavior
No problems compiling for a project which only targets OS versions supported by all types and interfaces used.
Merged into main-dev. Will merge as soon as the weird CI-blocking bug on Windows is resolved.
Thanks to everyone for spotting and special thanks to @brittlewis12 for fixing 🤗
Activity
ashvardanian commentedon Apr 14, 2025
@brittlewis12, that may be the only right way - to mark all
Float16methods accordingly, as Swift only supportsFloat16on iOS version 14 and newer.oboje commentedon Apr 25, 2025
up. Building for ios 17, same problem.
hbcondo commentedon May 22, 2025
Same problem as well when trying to use USearch with UForm which
has a minimum deployment target of iOS 16.0Fix: iOS 14 availability declaration to `Float16` APIs (#610)
ashvardanian commentedon May 26, 2025
Merged into
main-dev. Will merge as soon as the weird CI-blocking bug on Windows is resolved.Thanks to everyone for spotting and special thanks to @brittlewis12 for fixing 🤗
Fix: Guard Float16 APIs with #if arch(arm64) in core Swift bindings
Fix: Guard Float16 APIs with `#if arch(arm64)` in Swift SDK (#739)