GithubHelp home page GithubHelp logo

Comments (1)

tapi avatar tapi commented on August 27, 2024

I have some details here that might make it worth while reopening this.

iOS does not support shipping dylibs on the appstore, only macos does. Docs are here, Swift forum discussion here
For iOS we need to convert it to a universal library using lipo and then bundle the library, the module map and the header as a framework.

It may be worthwhile to do this for static libraries to produce static frameworks as well. It means simpler code in cargo-swift but it also allows for the inclusion of xcprivacy manifests which Apple has started warning about and will be required in the future.

I was taking a crack at hand hacking the xcframework with frameworks but was getting issues in Xcode, the Swift wrapper could not see the uniffi header symbols, I was wondering if these docs might be related to the issue I was seeing. Some useful context, The framework and binary must have the same name, ie RustModule.framework must contain the RustModule binary, otherwise xcodebuild -create-xcframework will fail with an error code of 70. The path it attempts to copy matches that naming. Might be worth filing a rdar to just copy the contents, but I don't have high hopes that it would ever get addressed.

If we can get dynamic frameworks working it would be awesome to include a step to generate dsyms for them so stack traces can be decoded on platforms like Crashlytics, Bugsnage, etc

from cargo-swift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.