Skip to content

[bug] Xcodebuild: error: Unable to find a destination matching the provided destination specifier: #14616

@melodyxpot

Description

@melodyxpot

Describe the bug

I got the error while running npm run tauri:ios

> [email protected] tauri:ios
> tauri ios dev -c src-tauri/tauri.ios.conf.json

/usr/local/bin/ios-deploy
Detected iOS simulators:
  [0] iPad (10th generation) (iOS 17.4)
  [1] iPad Air 11-inch (M2) (iOS 17.4)
  [2] iPad Air 13-inch (M2) (iOS 17.4)
  [3] iPad Pro 11-inch (M4) (iOS 17.4)
  [4] iPad Pro 13-inch (M4) (iOS 17.4)
  [5] iPad mini (6th generation) (iOS 17.4)
  [6] iPhone 15 (iOS 17.4)
  [7] iPhone 15 Plus (iOS 17.4)
  [8] iPhone 15 Pro (iOS 17.4)
  [9] iPhone 15 Pro Max (iOS 17.4)
  [10] iPhone SE (3rd generation) (iOS 17.4)
  Enter an index for a simulator above.
Simulator: 0
        Info Starting simulator iPad (10th generation)
     Running BeforeDevCommand (`npm run dev`)

> [email protected] dev
> vite --host 0.0.0.0

Created symlink: Gmail.svg -> Google.svg
Created symlink: LinkedIn.svg -> Microsoft.svg
Forced re-optimization of dependencies

  VITE v4.5.14  ready in 237 ms

  ➜  Local:   http://localhost:1420/
  ➜  Network: http://192.168.0.107:1420/
  ➜  Network: http://10.2.0.2:1420/
Building app...
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -allowProvisioningUpdates -destination id=D598F5E1-4499-47BA-9408-FAC303855466 ARCHS=x86_64 -scheme tauri-mobile-client_iOS -workspace /Users/s/Documents/Projects/agentiffai-mobile/src-tauri/gen/apple/tauri-mobile-client.xcodeproj/project.xcworkspace/ -sdk iphonesimulator -configuration debug build

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    ARCHS = x86_64
    SDKROOT = iphonesimulator18.0

2025-12-06 08:40:54.672 xcodebuild[8208:63492] Writing error result bundle to /var/folders/vy/1l7bvxns65l_16vswb28pvxm0000gn/T/ResultBundle_2025-06-12_08-40-0054.xcresult
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
                { id:D598F5E1-4499-47BA-9408-FAC303855466 }

        Available destinations for the "tauri-mobile-client_iOS" scheme:
                { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
                { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
failed to run iOS app: failed to build with xcodebuild: command ["xcodebuild"] exited with code 70
       Error failed to run iOS app: failed to build with xcodebuild: command ["xcodebuild"] exited with code 70

Did anyone solve this kind of problem?
I tried on several iOS versions but all are not working

Reproduction

No response

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Mac OS 15.7.2 x86_64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ Xcode: 16.0
    ✔ rustc: 1.91.1 (ed61e7d7e 2025-11-07)
    ✔ cargo: 1.91.1 (ea2d97820 2025-10-10)
    ✔ rustup: 1.28.2 (e4f3ad6f8 2025-04-28)
    ✔ Rust toolchain: stable-x86_64-apple-darwin (overridden by environment variable RUSTUP_TOOLCHAIN)
    - node: 24.11.1
    - npm: 11.6.2

[-] Packages
    - tauri 🦀: 2.9.3, (outdated, latest: 2.9.4)
    - tauri-build 🦀: 2.5.2, (outdated, latest: 2.5.3)
    - wry 🦀: 0.53.5
    - tao 🦀: 0.34.5
    - tauri-cli 🦀: 2.9.5
    - @tauri-apps/api  ⱼₛ: 2.9.0 (outdated, latest: 2.9.1)
    - @tauri-apps/cli  ⱼₛ: 2.9.5

[-] Plugins
    - tauri-plugin-http 🦀: 2.5.4
    - @tauri-apps/plugin-http  ⱼₛ: 2.5.4
    - tauri-plugin-shell 🦀: 2.3.3
    - @tauri-apps/plugin-shell  ⱼₛ: 2.3.3
    - tauri-plugin-store 🦀: 2.4.1
    - @tauri-apps/plugin-store  ⱼₛ: 2.4.1
    - tauri-plugin-fs 🦀: 2.4.4
    - @tauri-apps/plugin-fs  ⱼₛ: not installed!
    - tauri-plugin-opener 🦀: 2.5.2
    - @tauri-apps/plugin-opener  ⱼₛ: 2.5.2
    - tauri-plugin-deep-link 🦀: 2.4.5
    - @tauri-apps/plugin-deep-link  ⱼₛ: 2.4.5

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Rollup

[-] iOS
    - Developer Teams: None

Stack trace


Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions