-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hello author, thank you for your work, it's great.
I integrated this plug-in in the tauri project, and wanted to use it to unify the remote push of iOS and Android, but when running the iOS App, this error was reported. What went wrong?
Compiling tauri-macros v2.3.1
Compiling mytauripush v0.1.0 (/Users/adam/Downloads/Tauri Notification/MyTauriPush/MyTauriPush/src-tauri)
error: failed to run custom build command for `tauri-plugin-remote-push v1.0.10`
Caused by:
process didn't exit successfully: `/Users/adam/Downloads/Tauri Notification/MyTauriPush/MyTauriPush/src-tauri/target/debug/build/tauri-plugin-remote-push-e1d1cf220b47676f/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-changed=permissions
cargo:PERMISSION_FILES_PATH=/Users/adam/Downloads/Tauri Notification/MyTauriPush/MyTauriPush/src-tauri/target/aarch64-apple-ios/debug/build/tauri-plugin-remote-push-a5d3ae5ac1910631/out/tauri-plugin-remote-push-permission-files
cargo:rerun-if-env-changed=REMOVE_UNUSED_COMMANDS
cargo:rustc-check-cfg=cfg(mobile)
cargo:rustc-cfg=mobile
cargo:rustc-check-cfg=cfg(desktop)
cargo:rerun-if-changed=/Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-2.6.2/mobile/ios-api/README.md
cargo:rerun-if-changed=/Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-2.6.2/mobile/ios-api/.gitignore
cargo:rerun-if-changed=/Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-2.6.2/mobile/ios-api/Package.swift
cargo:rerun-if-changed=/Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-2.6.2/mobile/ios-api/Sources/Tauri/UiUtils.swift
cargo:rerun-if-changed=/Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-2.6.2/mobile/ios-api/Sources/Tauri/JsonValue.swift
cargo:rerun-if-changed=/Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-2.6.2/mobile/ios-api/Sources/Tauri/Invoke.swift
cargo:rerun-if-changed=/Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-2.6.2/mobile/ios-api/Sources/Tauri/Logger.swift
cargo:rerun-if-changed=/Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-2.6.2/mobile/ios-api/Sources/Tauri/Plugin/Plugin.swift
cargo:rerun-if-changed=/Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-2.6.2/mobile/ios-api/Sources/Tauri/Channel.swift
cargo:rerun-if-changed=/Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-2.6.2/mobile/ios-api/Sources/Tauri/JSTypes.swift
cargo:rerun-if-changed=/Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-2.6.2/mobile/ios-api/Sources/Tauri/Tauri.swift
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build -scheme tauri-plugin-remote-push -configuration Debug -sdk iphoneos -arch arm64 -derivedDataPath "/Users/adam/Downloads/Tauri Notification/MyTauriPush/MyTauriPush/src-tauri/target/aarch64-apple-ios/debug/build/tauri-plugin-remote-push-a5d3ae5ac1910631/out/derivedData-tauri-plugin-remote-push" BUILD_LIBRARY_FOR_DISTRIBUTION=YES OTHER_SWIFT_FLAGS=-no-verify-emitted-module-interface
Build settings from command line:
ARCHS = arm64
BUILD_LIBRARY_FOR_DISTRIBUTION = YES
OTHER_SWIFT_FLAGS = -no-verify-emitted-module-interface
SDKROOT = iphoneos18.5
--- stderr
2025-07-04 17:21:24.872 xcodebuild[94581:9586263] Writing error result bundle to /var/folders/k_/n054j8v10p9gyrw8zfhnhv3m0000gn/T/ResultBundle_2025-04-07_17-21-0024.xcresult
xcodebuild: error: The directory /Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-plugin-remote-push-1.0.10/ios does not contain an Xcode project, workspace or package.
thread 'main' panicked at /Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-utils-2.5.0/src/build.rs:81:3:
assertion failed: status.success()
stack backtrace:
0: __rustc::rust_begin_unwind
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panicking.rs:697:5
1: core::panicking::panic_fmt
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/panicking.rs:75:14
2: core::panicking::panic
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/panicking.rs:145:5
3: tauri_utils::build::link_xcode_library
at /Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-utils-2.5.0/src/build.rs:81:3
4: tauri_utils::build::link_apple_library
at /Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-utils-2.5.0/src/build.rs:13:5
5: tauri_plugin::build::mobile::setup
at /Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-plugin-2.3.0/src/build/mobile.rs:93:9
6: tauri_plugin::build::Builder::try_build
at /Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-plugin-2.3.0/src/build/mod.rs:150:5
7: tauri_plugin::build::Builder::build
at /Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-plugin-2.3.0/src/build/mod.rs:83:25
8: build_script_build::main
at ./build.rs:4:3
9: core::ops::function::FnOnce::call_once
at /Users/adam/.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", "mytauripush", "--manifest-path", "/Users/adam/Downloads/Tauri Notification/MyTauriPush/MyTauriPush/src-tauri/Cargo.toml", "--target", "aarch64-apple-ios", "--lib", "--no-default-features"] exited with code 101
Error Failed to run `cargo build`: command ["cargo", "build", "--package", "mytauripush", "--manifest-path", "/Users/adam/Downloads/Tauri Notification/MyTauriPush/MyTauriPush/src-tauri/Cargo.toml", "--target", "aarch64-apple-ios", "--lib", "--no-default-features"] exited with code 101
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
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 'mytauripush_iOS' from project 'mytauripush')
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution Build\ Rust\ Code /Users/adam/Library/Developer/Xcode/DerivedData/mytauripush-fjpdqgtnzxjgozelhzppvvkmvajx/Build/Intermediates.noindex/mytauripush.build/debug-iphoneos/mytauripush_iOS.build/Script-30067148CB599409A422DBB2.sh (in target 'mytauripush_iOS' from project 'mytauripush')
Building workspace mytauripush with scheme mytauripush_iOS and configuration debug
(2 failures)
command ["xcodebuild"] exited with code 65
Error command ["xcodebuild"] exited with code 65
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Judging from this line of error information, it seems that the plugin is missing some iOS-related files:
xcodebuild: error: The directory /Users/adam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-plugin-remote-push-1.0.10/ios does not contain an Xcode project, workspace or package.
This is my development environment:
yarn run v1.22.22
$ tauri info
[✔] Environment
- OS: Mac OS 15.5.0 x86_64 (X64)
✔ Xcode Command Line Tools: installed
✔ rustc: 1.88.0 (6b00bc388 2025-06-23)
✔ cargo: 1.88.0 (873a06493 2025-05-10)
✔ rustup: 1.28.2 (e4f3ad6f8 2025-04-28)
✔ Rust toolchain: stable-x86_64-apple-darwin (default)
- node: 22.14.0
- pnpm: 10.12.4
- yarn: 1.22.22
- npm: 11.2.0
[-] Packages
- tauri 🦀: 2.6.2
- tauri-build 🦀: 2.3.0
- wry 🦀: 0.52.1
- tao 🦀: 0.34.0
- @tauri-apps/api : not installed!
- @tauri-apps/cli : 2.6.2
[-] Plugins
- tauri-plugin-opener 🦀: 2.4.0
- @tauri-apps/plugin-opener : not installed!
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- bundler: Vite
[-] iOS
- Developer Teams: xxx
✨ Done in 9.76s.
Looking forward to your reply
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels