-
Notifications
You must be signed in to change notification settings - Fork 832
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
feat(vm) Add support for iOS #1832
Comments
Hey @Connoropolous, we hope to run Wasmer pretty much everywhere in the future! However, iOS in particular is fairly tricky as Apple does not allow JITs in the app store. However it should be possible to use precompiled Wasm modules with Wasmer or execute the Wasm without a JIT. You might have better luck with Wasmer 1.0.0-alpha* releases of Wasmer / the latest version on master, but I imagine there's likely to be more cases similar to the one you ran into above. |
@MarkMcCaskey thanks for the info! On latest releases has it been tried to compile for apple-ios targets, or are you confident from your background knowledge that it won't work? (I will try if you haven't tried, just to see) |
The issue is not that it won't work, but that Apple have never approved any app in the store that uses JIT compilation techniques. However, the JIT restriction might have changed in iOS 14.2 - https://9to5mac.com/2020/11/06/ios-14-2-brings-jit-compilation-support-which-enables-emulation-apps-at-full-performance/ So I'd encourage you to try it out and post here your findings! |
My first findings suggest there would need to be PRs put through to make it happen, it's not quite there. Good to hear that Apple could open to this. This is attempting to compile from version 1.0.0-alpha5 error: unsupported platform error[E0425]: cannot find function error[E0308]: mismatched types error: aborting due to 4 previous errors |
in the website, i found that the wasmer can run on iOS Android, how to do that? |
@panicfrog You misunderstood about it. It just says that WebAssembly can run on iOS, not Wasmer. |
Hi @Hywan , I've seen you've had some activity on this issue. I've been trying to compile Wasmer to iOS using the dylib engine but having issues with each compiler that I use. Currently I'm trying LLVM but once I drag the
|
Can be kinda relevant #2516. |
As of this PR: #2535 we now support iOS on Wasmer |
Summary
Is IOS on the roadmap for wasmer anywhere, and if so does it have a predicted timeline?
I noted there is VERY recent support for the new apple silicon chips.
Additional details
I was trying to compile a project with a dependency on (https://github.com/holochain/holochain) (with target
aarch64-apple-ios
) which has a dependency currently onwasmer-runtime-core v0.16.2
and discovered that we can't build wasmer-runtime-core for that target.Holochain uses wasmer for executing apps built on their p2p framework... and I am interested in running those p2p apps in native ios applications.
This was the issue that was popping up when I tried...
The text was updated successfully, but these errors were encountered: