Skip to content

Support for static linking against iOS onnxruntime framework #428

Closed

Description

@jhonboy121

Currently there is no way of using ort with static linking against iOS onnxruntime framework (https://download.onnxruntime.ai/pod-archive-onnxruntime-c-1.20.0.zip). Dynamic linking is not supported in iOS for non system frameworks so adding this would be of great help. I am also willing to make a PR if its within my limits.

Activity

  1. decahedron1 commented on Jul 10, 2025

    @decahedron1
    Member

    A PR would be greatly appreciated!

  2. added
    enhancement
    on Jul 10, 2025
  3. jhonboy121 commented on Jul 10, 2025

    @jhonboy121
    ContributorAuthor

    Great, I will try fiddling around with build.rs to see if I can get things to work, if you could let me know what all things to watch out for / ensure is working, that would be great.

  4. jhonboy121 commented on Jul 10, 2025

    @jhonboy121
    ContributorAuthor

    If you dont mind, can you share the specific options you guys use for rustfmt? As soon as I make any changes trailing commas are added everywhere and its making a lot of diff

  5. decahedron1 commented on Jul 10, 2025

    @decahedron1
    Member

    It should be picking up the config in the root (https://github.com/pykeio/ort/blob/main/rustfmt.toml). Note that you do need to use the nightly version of rustfmt because 90% of its options are sadly locked behind nightly.

  6. jhonboy121 commented on Jul 10, 2025

    @jhonboy121
    ContributorAuthor

    Ah got it. Thanks! I was trying with cargo +nightly fmt but that didnt make any difference lol, defaulted to nightly and all is well. Thanks again!

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

    enhancementos: iOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions