Repository: tauri
Issue: [bug] ios xcode build Archive: Command PhaseScriptExecution failed with a nonzero exit code
Labels: type: bug,status: needs triage

### 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

```text
[✔] 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

```text
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_