-
Notifications
You must be signed in to change notification settings - Fork 837
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
make build-capi-headless-ios error #5329
Comments
Hello! Thanks for reporting. Yep, I can confirm this error. Do you want to work on it? We'll be glad to review a PR; if not, we can take this, but we'll need to see how it fits in with current priorities. |
well,I am trying to solve this problem and would like to seek your advice. Specifically, I noticed that version 5.0 already supports iOS and I need to use WebAssembly (WASM) within an iOS project. However, I have been unable to find relevant documentation。Could you please provide any suggestions or point me toward useful resources? |
Currently, the support for iOS is still experimental. In the 5.0 release we added support for backends that are (or use) an interpreter to execute Wasm code; accompanying this release we also added - and here is the experimental bit - a wasmer-swift library that can be used to embed the In short, By the way, I will keep this issue open because that |
I couldn’t find the wasmer_swiftFFI.modulemap and wasmer_swift.h files, even though running cargo build --package=wasmer-swift --target=aarch64-apple-ios-sim --release was supposed to generate them automatically during the build step via uniffi. |
I think we can work out a solution using these docs: https://mozilla.github.io/uniffi-rs/latest/tutorial/foreign_language_bindings.html |
INFORMATION
Host Target:
aarch64-apple-darwin
.Enabled Compilers: cranelift, singlepass.
Testing the following compilers & engines:
Cargo features:
--features cranelift,singlepass,wasmer-artifact-create,static-artifact-create,wasmer-artifact-load,static-artifact-load
.Rust version: rustc 1.81.0 (eeb90cda1 2024-09-04) (Homebrew).
NodeJS version: v18.13.0.
RULE EXECUTION
RUSTFLAGS=" -C panic=abort" cargo lipo --manifest-path lib/c-api/Cargo.toml --release
--no-default-features --features compiler-headless,wasi,webc_runner --target-dir target//headless
error: Found argument '--target-dir' which wasn't expected, or isn't valid in this context
Did you mean --targets?
USAGE:
cargo lipo --features --manifest-path --no-default-features --release --targets <TARGET1,TARGET2>...
For more information try --help
make: *** [build-capi-headless-ios] Error 1
The text was updated successfully, but these errors were encountered: