#failed to select a version for the requirement `rustls = "^0.23.4"` iOS dev

5 messages · Page 1 of 1 (latest)

marble quest
#

Here is my info

[✔] Environment
    - OS: Mac OS 14.5.0 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.77.1 (7cf61ebde 2024-03-27)
    ✔ cargo: 1.77.1 (e52e36006 2024-03-26)
    ✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 22.5.1
    - pnpm: 9.1.1
    - npm: 10.8.2
    - bun: 1.0.25

[-] Packages
    - tauri [RUST]: 2.0.0-rc.0
    - tauri-build [RUST]: 2.0.0-rc.0
    - wry [RUST]: 0.41.0
    - tao [RUST]: 0.28.1
    - @tauri-apps/api [NPM]: 2.0.0-rc.0
    - @tauri-apps/cli [NPM]: 2.0.0-rc.1

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../build
    - devUrl: http://localhost:1420/
    - framework: Svelte
    - bundler: Vite

[-] iOS
    - Developer Teams: None

running pnpm tauri ios dev

#
error: failed to select a version for the requirement `rustls = "^0.23.4"`
candidate versions found which didn't match: 0.22.0-alpha.6, 0.22.0-alpha.5, 0.22.0-alpha.4, ...
location searched: crates.io index
required by package `reqwest v0.12.5`
    ... which satisfies dependency `reqwest = "^0.12"` (locked to 0.12.5) of package `tauri v2.0.0-rc.0`
    ... which satisfies dependency `tauri = "^2.0.0-rc"` (locked to 2.0.0-rc.0) of package `the-decider-app v0.0.0 (/Users/scotttolinski/Sites/projects/the-decider-app/src-tauri)`
if you are looking for the prerelease package it needs to be specified explicitly
    rustls = { version = "0.22.0-alpha.6" }
perhaps a crate was updated and forgotten to be re-vendored?
    Error [tauri_cli_node] Failed to run `cargo build`: command ["cargo", "build", "--package", "the-decider-app", "--manifest-path", "/Users/scotttolinski/Sites/projects/the-decider-app/src-tauri/Cargo.toml", "--target", "aarch64-apple-ios-sim", "--features", "tauri/rustls-tls", "--lib", "--no-default-features"] exited with code 101
 ELIFECYCLE  Command failed with exit code 1.
Command PhaseScriptExecution failed with a nonzero exit code

note: Run script build phase 'Build Rust Code' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'the-decider-app_iOS' from project 'the-decider-app')
** BUILD FAILED **


The following build commands failed:
    PhaseScriptExecution Build\ Rust\ Code /Users/scotttolinski/Library/Developer/Xcode/DerivedData/the-decider-app-bohqprpjfenywwawrzzqmlntndhw/Build/Intermediates.noindex/the-decider-app.build/debug-iphonesimulator/the-decider-app_iOS.build/Script-390CFEE94356CB6610370324.sh (in target 'the-decider-app_iOS' from project 'the-decider-app')
(1 failure)
    Error command ["xcodebuild"] exited with code 65
 ELIFECYCLE  Command failed with exit code 1.
#

This was after starting a new project via pnpm create tauri-app --rc and selecting ios

marble quest
#

After adding an explicit dep of rustls = "^0.23.4"
It now errors with
error: failed to select a version for the requirement tokio-rustls = "^0.26"
candidate versions found which didn't match: 0.25.0-alpha.4, 0.25.0-alpha.3, 0.25.0-alpha.2, ...
location searched: crates.io index
required by package reqwest v0.12.5
... which satisfies dependency reqwest = "^0.12" (locked to 0.12.5) of package tauri v2.0.0-rc.0
... which satisfies dependency tauri = "^2.0.0-rc" (locked to 2.0.0-rc.0) of package the-decider-app v0.0.0 (/Users/scotttolinski/Sites/projects/the-decider-app/src-tauri)

#

after playing wackamole with these for a bi, I'm now getting to
error: failed to run custom build command for aws-lc-sys v0.20.1

Caused by:
process didn't exit successfully: /Users/scotttolinski/Sites/projects/the-decider-app/src-tauri/target/debug/build/aws-lc-sys-470e47adafefa569/build-script-main (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=AWS_LC_SYS_NO_PREFIX
cargo:rerun-if-env-changed=AWS_LC_SYS_INTERNAL_BINDGEN
cargo:rerun-if-env-changed=AWS_LC_SYS_EXTERNAL_BINDGEN
cargo:rerun-if-env-changed=AWS_LC_SYS_NO_ASM
cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE_BUILDER
cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC
cargo:rerun-if-env-changed=CMAKE

--- stderr
Missing dependency: cmake
thread 'main' panicked at /Users/scotttolinski/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.20.1/builder/main.rs:302:40:
called Result::unwrap() on an Err value: "Required build dependency is missing. Halting build."
stack backtrace:
0: rust_begin_unwind
at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/panicking.rs:652:5
1: core::panicking::panic_fmt
at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/core/src/panicking.rs:72:14
2: core::result::unwrap_failed
at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/core/src/result.rs:1679:5
3: core::result::Result<T,E>::unwrap
at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/core/src/result.rs:1102:23
4: build_script_main::get_builder
at ./builder/main.rs:302:5
5: build_script_main::main
at ./builder/main.rs:413:19
6: core::ops::function::FnOnce::call_once
at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/core/src/ops/function.rs:250:5

No idea why