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

Local cargo dependencies on iOS not working #204

Open
1 of 2 tasks
vimpunk opened this issue Sep 5, 2023 · 0 comments
Open
1 of 2 tasks

Local cargo dependencies on iOS not working #204

vimpunk opened this issue Sep 5, 2023 · 0 comments

Comments

@vimpunk
Copy link

vimpunk commented Sep 5, 2023

Describe the bug
As the title indicates, I'm trying to build for iOS and my project would be using a local dependency specified by its path. Unfortunately, it doesn't look possible as it's giving me unresolved import and error[E0433]: failed to resolve: use of undeclared crate or module X errors.

I wonder if I'm doing something wrong or if this expected?

Steps To Reproduce
I'm using egui instead of wry but I don't think that should make a difference here. Otherwise simply specify a dependency in cargo.toml that's pointing either outside or inside the repo set up via cargo mobile init, it should be the same.

Screenshots
If applicable, add screenshots to help explain your problem.

Platform and Versions (please complete the following information):
Host OS: macos Ventura 13.5
Target OS: iOS 16.4
Rustc: 1.71
cargo mobile doctor:

❯ cargo mobile doctor

[✔] cargo-mobile v0.5.3
    • Contains commits up to "chore(deps): update rust crate thiserror to 1.0.48 (#193)\n"
    • Installed at "~/.cargo/.tauri-mobile"
    • macOS v13.5 (22G74)
    • rustc v1.71.1 (eb26296b5 2023-8-3)

[✔] Apple developer tools
    • Xcode v14.3
    • Active developer dir: "/Applications/Xcode.app/Contents/Developer"
    • ios-deploy v1.12.2
    • XcodeGen v2.37.0
    ✗ xcode-rust-plugin plugin absent
    ✗ xcode-rust-plugin lang spec absent
    ✗ xcode-rust-plugin lang metadata absent
    • xcode-rust-plugin is up-to-date
    ✗ xcode-rust-plugin doesn't support Xcode UUID "X"
    • Development team: X

[!] Android developer tools
    ✗ Have you installed the Android SDK? The `ANDROID_HOME` environment variable isn't set, and is required: environment variable not found

[✔] Connected devices
    • @X (iPhone 14 Pro Max)

Would you want to assign yourself to resolve this bug?

  • Yes
  • No
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant