Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] xcodebuild: error: Found no destinations for the scheme 'openaiimages_iOS' #9120

Closed
slimandslam opened this issue Mar 7, 2024 · 2 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@slimandslam
Copy link

Describe the bug

$ yarn tauri ios dev
fails with the error
xcodebuild: error: Found no destinations for the scheme 'openaiimages_iOS' and action build.
Error command ["xcodebuild"] exited with code 70

Reproduction

$ git clone https://github.com/slimandslam/openaiimages.git
$ yarn
$ yarn tauri ios init
$ yarn tauri ios dev

Expected behavior

It should build and launch the app in the simulator

Full tauri info output

$ yarn tauri info
yarn run v1.22.21
$ tauri info

[✔] Environment
    - OS: Mac OS 14.3.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.76.0 (07dca489a 2024-02-04)
    ✔ cargo: 1.76.0 (c84b36747 2024-01-18)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 18.17.0
    - pnpm: 8.13.1
    - yarn: 1.22.21
    - npm: 9.6.7

[-] Packages
    - tauri [RUST]: 2.0.0-beta.6
    - tauri-build [RUST]: 2.0.0-beta.4
    - wry [RUST]: 0.37.0
    - tao [RUST]: 0.26.0
    - tauri-cli [RUST]: 2.0.0-beta.2
    - @tauri-apps/api [NPM]: 2.0.0-beta.4
    - @tauri-apps/cli [NPM]: 2.0.0-beta.7

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

[-] iOS
    - Developer Teams: None
✨  Done in 4.15s.

Stack trace

$ yarn tauri ios dev
yarn run v1.22.21
$ tauri ios dev
    Info package `ios-deploy` present: false
Installing `ios-deploy`...
==> Downloading https://ghcr.io/v2/homebrew/core/ios-deploy/manifests/1.12.2
Already downloaded: /Users/someuser/Library/Caches/Homebrew/downloads/9b35e9ec707233a4e223729e99afe06f4c0bb456f9c83bc00865cb1ec5cd9588--ios-deploy-1.12.2.bottle_manifest.json
==> Fetching ios-deploy
==> Downloading https://ghcr.io/v2/homebrew/core/ios-deploy/blobs/sha256:6d9ac2ff01049d41618a63ef47738fe9e01cf9b77154b9773bde8
Already downloaded: /Users/someuser/Library/Caches/Homebrew/downloads/fa9d735dc410b354c17bbee20b50fbaf40927400d609e3657da9efc34917120e--ios-deploy--1.12.2.arm64_sonoma.bottle.tar.gz
==> Reinstalling ios-deploy
==> Pouring ios-deploy--1.12.2.arm64_sonoma.bottle.tar.gz
🍺  /opt/homebrew/Cellar/ios-deploy/1.12.2: 5 files, 260.4KB
==> Running `brew cleanup ios-deploy`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Detected iOS simulators:
  [0] iPad (10th generation)
  [1] iPad Air (5th generation)
  [2] iPad Pro (11-inch) (4th generation)
  [3] iPad Pro (12.9-inch) (6th generation)
  [4] iPad mini (6th generation)
  [5] iPhone 15
  [6] iPhone 15 Plus
  [7] iPhone 15 Pro
  [8] iPhone 15 Pro Max
  [9] iPhone SE (3rd generation)
  Enter an index for a simulator above.
Simulator: 5
    Info Starting simulator iPhone 15
    Info Using 192.168.11.70 to access the development server.
    Running BeforeDevCommand (`yarn dev`)
$ vite

  VITE v5.1.5  ready in 550 ms

  ➜  Local:   http://localhost:1420/
  ➜  Network: http://192.168.11.70:1420/
    Info detected host target triple "aarch64-apple-darwin"
Building app...
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -scheme openaiimages_iOS -workspace /Users/someuser/openaiimages/src-tauri/gen/apple/openaiimages.xcodeproj/project.xcworkspace/ -sdk iphonesimulator -configuration debug -arch arm64-sim -allowProvisioningUpdates build

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    ARCHS = arm64-sim
    SDKROOT = iphonesimulator17.4

2024-03-07 10:04:03.758 xcodebuild[87423:5446752] Writing error result bundle to /var/folders/hx/nphsmj8n23312z3nc9n3391h0000gp/T/ResultBundle_2024-07-03_10-04-0003.xcresult
xcodebuild: error: Found no destinations for the scheme 'openaiimages_iOS' and action build.
    Error command ["xcodebuild"] exited with code 70
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
$

Additional context

No response

@slimandslam slimandslam added status: needs triage This issue needs to triage, applied to new issues type: bug labels Mar 7, 2024
@aronmartin
Copy link

I had the same but after updating ios simulator with xcode I dont have this error anymore

@slimandslam
Copy link
Author

slimandslam commented Mar 9, 2024

Thanks @aronmartin . That fixed it. To be specific, I had to update the Simulator to iOS v17.4
The steps are something like this:

1.  In Xcode, from the menu bar, choose Xcode > Settings….
2.  Go to the Platforms tab.
3. If you see iOS v17.4, install it.
4.  Otherwise, click the plus symbol (+) in the lower left corner, and then select iOS to view a list of its available versions.
4.  Select iOS v17.4 and click Download & Install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

3 participants