-
Notifications
You must be signed in to change notification settings - Fork 25
WIP: iOS support #73
base: main
Are you sure you want to change the base?
WIP: iOS support #73
Conversation
I looked at this briefly. iOS is a bit different than Android because they don't have JIT. Wasmer has support for it though, you just have to do AOT compilation. Here's what needs to change:
|
@gaaclarke Sorry for the slow reply, I missed your message. Thanks for taking a look. Why would I need to compile the wasm code to a dylib to use the AOT backend? If I'm loading it via wasm_module_deserialize, doesn't that mean I just need to produce the file via wasm_module_serialize? If I compile the wasm to a dylib, wouldn't I need to load it using FFI or something? The issue I'm having at the moment is just that I can't figure out how to get the package's native code to link into the app. I think there's something missing in flutter_wasm/ios/flutter_wasm.podspec, but I don't know enough about the iOS build system to figure it out. The way this problem manifests is that when I try to run the app, FFI simply fails to find any of the native wasmer functions. If someone can help me with the build magic, and get this PR to the point where FFI loads the wasmer functions correctly, I can figure out the rest. |
(This doesn't work at all yet)
Most of the files are boilerplate created by flutter. The only relevant files are: