iOS deploy fails on Xcode 27: Simulator.app not found in Contents/Developer/Applications

Aperta
#410 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
ios, typescript
Ambito
mobile

Direzione di ricerca

Start by locating the iOS simulator deployment path that opens Simulator.app and check how it derives the app location from the selected Xcode developer directory. Compare that path with the Xcode 27.1 layout described here, then reproduce with npx cap run ios --target <simulator id>. Done means deployment, installation, and launch succeed on the reported setup.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Version: native-run 2.0.3 (via @capacitor/cli 8.5.3), Xcode 27.1 (27A9275), macOS 27

Description:

npx cap run ios --target <sim-id> builds successfully, then deploy fails:

✖ Deploying App.app to 430E270D-... - failed!
[error] ERR_UNKNOWN: There was an error opening simulator: The file /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app does not exist.

xcode-select -p points at /Applications/Xcode.app/Contents/Developer, but that folder has no Applications/ subfolder in Xcode 27.1, and open -a Simulator reports no app named Simulator. The iOS 27 platform is installed and xcrun simctl works.

Unlike #401, the selected developer dir is correct; the hard-coded Contents/Developer/Applications/Simulator.app location no longer exists.

Expected: deploy succeeds, as it does manually with:

xcrun simctl boot <id>
xcrun simctl install <id> <path>/App.app
xcrun simctl launch <id> <bundle-id>

Steps to reproduce:

  1. Install Xcode 27.1 and the iOS 27 platform.
  2. npx cap add ios in a Capacitor 8.5.3 project.
  3. npx cap run ios --target <iPhone simulator id>.
Lingua principale
TypeScript
Stelle
139
Fork
35
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ionic-team/native-run

Tutte le issue di ionic-team/native-run

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.