You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[bug] error: Dependencies could not be resolved because no versions of 'swift-rs' match the requirement 1.0.0..<2.0.0 and 'tauri-api' depends on 'swift-rs' 1.0.0..<2.0.0.
#12964
Open
falcom520 opened this issue
Mar 13, 2025
· 1 comment
thread 'main' panicked at /Users/xxx/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/swift-rs-1.0.7/src-rs/build.rs:281:17:
Failed to compile swift package tauri-plugin-opener
stack backtrace:
0: rust_begin_unwind
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/panicking.rs:692:5
1: core::panicking::panic_fmt
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/core/src/panicking.rs:75:14
2: swift_rs::build::SwiftLinker::link
at /Users/xxx/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/swift-rs-1.0.7/src-rs/build.rs:281:17
3: tauri_utils::build::link_swift_library
at /Users/xxx/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tauri-utils-2.2.0/src/build.rs:25:3
4: tauri_utils::build::link_apple_library
at /Users/xxx/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tauri-utils-2.2.0/src/build.rs:11:5
5: tauri_plugin::build::mobile::setup
at /Users/xxx/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tauri-plugin-2.0.5/src/build/mobile.rs:93:9
6: tauri_plugin::build::Builder::try_build
at /Users/xxx/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tauri-plugin-2.0.5/src/build/mod.rs:143:5
7: tauri_plugin::build::Builder::build
at /Users/xxx/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tauri-plugin-2.0.5/src/build/mod.rs:80:25
8: build_script_build::main
at ./build.rs:116:5
9: core::ops::function::FnOnce::call_once
at /Users/xxx/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
warning: build failed, waiting for other jobs to finish...
Failed to run cargo build: command ["cargo", "build", "--package", "liveapp", "--manifest-path", "/Users/xxx/app/src/liveapp/src-tauri/Cargo.toml", "--target", "x86_64-apple-ios", "--lib", "--no-default-features"] exited with code 101
Error Failed to run cargo build: command ["cargo", "build", "--package", "liveapp", "--manifest-path", "/Users/xxx/app/src/liveapp/src-tauri/Cargo.toml", "--target", "x86_64-apple-ios", "--lib", "--no-default-features"] exited with code 101
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 'liveapp_iOS' from project 'liveapp')
** BUILD FAILED **
Describe the bug
--- stderr
Fetching https://github.com/Brendonovich/swift-rs from cache
Fetched https://github.com/Brendonovich/swift-rs (1.25s)
Computing version for https://github.com/Brendonovich/swift-rs
error: Dependencies could not be resolved because no versions of 'swift-rs' match the requirement 1.0.0..<2.0.0 and 'tauri-api' depends on 'swift-rs' 1.0.0..<2.0.0.
thread 'main' panicked at /Users/xxx/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/swift-rs-1.0.7/src-rs/build.rs:281:17:
Failed to compile swift package tauri-plugin-opener
stack backtrace:
0: rust_begin_unwind
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/panicking.rs:692:5
1: core::panicking::panic_fmt
at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/core/src/panicking.rs:75:14
2: swift_rs::build::SwiftLinker::link
at /Users/xxx/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/swift-rs-1.0.7/src-rs/build.rs:281:17
3: tauri_utils::build::link_swift_library
at /Users/xxx/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tauri-utils-2.2.0/src/build.rs:25:3
4: tauri_utils::build::link_apple_library
at /Users/xxx/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tauri-utils-2.2.0/src/build.rs:11:5
5: tauri_plugin::build::mobile::setup
at /Users/xxx/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tauri-plugin-2.0.5/src/build/mobile.rs:93:9
6: tauri_plugin::build::Builder::try_build
at /Users/xxx/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tauri-plugin-2.0.5/src/build/mod.rs:143:5
7: tauri_plugin::build::Builder::build
at /Users/xxx/.cargo/registry/src/mirrors.aliyun.com-0671735e7cc7f5e7/tauri-plugin-2.0.5/src/build/mod.rs:80:25
8: build_script_build::main
at ./build.rs:116:5
9: core::ops::function::FnOnce::call_once
at /Users/xxx/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with
RUST_BACKTRACE=full
for a verbose backtrace.warning: build failed, waiting for other jobs to finish...
Failed to run
cargo build
: command ["cargo", "build", "--package", "liveapp", "--manifest-path", "/Users/xxx/app/src/liveapp/src-tauri/Cargo.toml", "--target", "x86_64-apple-ios", "--lib", "--no-default-features"] exited with code 101Error Failed to run
cargo build
: command ["cargo", "build", "--package", "liveapp", "--manifest-path", "/Users/xxx/app/src/liveapp/src-tauri/Cargo.toml", "--target", "x86_64-apple-ios", "--lib", "--no-default-features"] exited with code 101note: 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 'liveapp_iOS' from project 'liveapp')
** BUILD FAILED **
npm run tauri ios dev
Reinstalled many times, always report this error
Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
Additional context
No response
The text was updated successfully, but these errors were encountered: