Skip to content

Bug: failure to compile in Xcode 16.2 with Float16 type, missing @available for >= ios 14.0 #589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
brittlewis12 opened this issue Apr 14, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@brittlewis12
Copy link
Contributor

Describe the bug

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.

USearch version

2.17.6

Operating System

macOS 15.3.2, targeting >= ios 17.0

Hardware architecture

Arm

Which interface are you using?

Other bindings

Contact Details

[email protected]

Are you open to being tagged as a contributor?

  • I am open to being mentioned in the project .git history as a contributor

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@brittlewis12 brittlewis12 added the bug Something isn't working label Apr 14, 2025
@ashvardanian
Copy link
Contributor

@brittlewis12, that may be the only right way - to mark all Float16 methods accordingly, as Swift only supports Float16 on iOS version 14 and newer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants