Skip to content
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

Static library only works for i86 archs #100

Closed
ospfranco opened this issue Jan 26, 2024 · 4 comments
Closed

Static library only works for i86 archs #100

ospfranco opened this issue Jan 26, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@ospfranco
Copy link

I noticed once the library is added one can only run the app when running it with rosetta (on apple silicon machines). While this might work, it's dirty. You should compile the library (or download per target .a files). You can then package all of them in an xcframework (because x86 and x86_64 clash and you cannot directly include them) and use the vendored_frameworks capability of cocoapods to require this framework and xcode will compile per architecture.

You can see an example of how to do this (in Rust, but the concept is the same) in this post

@jerson
Copy link
Owner

jerson commented Jan 26, 2024

Hi @ospfranco yeah xcframework is something I'm gonna need to implement, going to check the docs to see how I can update the native code builder https://github.com/jerson/openpgp-mobile

@jerson jerson self-assigned this Jan 26, 2024
@jerson jerson added the enhancement New feature or request label Jan 26, 2024
@gituser8796
Copy link

Hi @jerson , is it something you'll be able to do in the near future?

@jerson
Copy link
Owner

jerson commented May 23, 2024

hey @gituser8796 @ospfranco could you try the newest version, I migrated to xcframework to support iphonesimulator
https://www.npmjs.com/package/react-native-fast-openpgp/v/2.7.3

@jerson jerson closed this as completed May 27, 2024
@ospfranco
Copy link
Author

Sorry, I don't have access to the project anymore. But if you followed the instructions it should be fine. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants