tauri-apps / tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
https://tauri.app
Apache License 2.0
82.21k stars 2.47k forks source link

[bug] ios xcode build Archive: Command PhaseScriptExecution failed with a nonzero exit code #10925

Open lindongchen opened 2 weeks ago

lindongchen commented 2 weeks ago

Describe the bug

After updating the tauri version recently, the build on xcode failed and PhaseScriptExecution occurred, and every yarn tauri ios build would overwrite the "signing&capabilities" I manually set. This may be a different issue, but it all comes from updating the tauri version. The last successful build was rc.1, and my xcode version is 15.4. I think there is a lack of certificate configuration matching xode in "tauri. ios. conf. json"

Reproduction

No response

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Mac OS 14.5.0 arm64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.77.0 (aedd173a2 2024-03-17)
    ✔ cargo: 1.77.0 (3fe68eabf 2024-02-29)
    ✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 18.20.4
    - pnpm: 8.10.5
    - yarn: 1.22.17
    - npm: 8.19.4

[-] Packages
    - tauri 🦀: 2.0.0-rc.8
    - tauri-build 🦀: 2.0.0-rc.7
    - wry 🦀: 0.41.0
    - tao 🦀: 0.29.1
    - @tauri-apps/api : 2.0.0-rc.4
    - @tauri-apps/cli : 2.0.0-rc.8

Stack trace

yarn run v1.22.17
$ tauri ios xcode-script -v --platform iOS --sdk-root /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.5.sdk --framework-search-paths '/Users/lindongchen/Library/Developer/Xcode/DerivedData/ztm-ggjzuydginvgnvapqbjuhckazfxh/Build/Products/debug-iphoneos  "."' --header-search-paths '/Users/lindongchen/Library/Developer/Xcode/DerivedData/ztm-ggjzuydginvgnvapqbjuhckazfxh/Build/Products/debug-iphoneos/include ' --gcc-preprocessor-definitions ' DEBUG=1' --configuration debug arm64
    Debug [jsonrpsee-client] Connecting to target: Target { host: "127.0.0.1", host_header: "127.0.0.1:59087", _mode: Plain, path_and_query: "/", basic_auth: None }
    Debug [jsonrpsee-client] Failed to connect to sockaddr: 127.0.0.1:59087
    Debug [jsonrpsee-client] Connecting to target: Target { host: "127.0.0.1", host_header: "127.0.0.1:59087", _mode: Plain, path_and_query: "/", basic_auth: None }
    Debug [jsonrpsee-client] Connecting to target: Target { host: "127.0.0.1", host_header: "127.0.0.1:59087", _mode: Plain, path_and_query: "/", basic_auth: None }
    Debug [jsonrpsee-client] Connecting to target: Target { host: "127.0.0.1", host_header: "127.0.0.1:59087", _mode: Plain, path_and_query: "/", basic_auth: None }
    Debug [jsonrpsee-client] Connecting to target: Target { host: "127.0.0.1", host_header: "127.0.0.1:59087", _mode: Plain, path_and_query: "/", basic_auth: None }
thread '<unnamed>' panicked at crates/tauri-cli/src/mobile/mod.rs:243:6:
failed to read CLI options: Error when opening the TCP socket: Connection refused (os error 61)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error Command failed with signal "SIGABRT".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
**Command PhaseScriptExecution failed with a nonzero exit code**

Additional context

No response

Leizhenpeng commented 3 days ago

the same error

lucasfernog commented 1 day ago

can you share a reproduction example? I can fix the "CLI is overwriting the manual signing" but for the rest i need more information. What's the error message?