Skip to content

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

Closed

Description

@brittlewis12

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

Activity

  1. added
    bug
    on Apr 14, 2025
  2. ashvardanian commented on Apr 14, 2025

    @ashvardanian
    Member

    @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.

  3. oboje commented on Apr 25, 2025

    @oboje

    up. Building for ios 17, same problem.

  4. hbcondo commented on May 22, 2025

    @hbcondo
    Contributor

    Same problem as well when trying to use USearch with UForm which has a minimum deployment target of iOS 16.0

  5. added a commit that references this issue on May 26, 2025
    cfb13be
  6. ashvardanian commented on May 26, 2025

    @ashvardanian
    Member

    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 🤗

  7. added a commit that references this issue on Mar 30, 2026
    09bdf0b
  8. added a commit that references this issue on Apr 5, 2026
    5bcf787
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions