NativeScript / NativeScript/nativescript-cli

Livesync not working for iOS simulator

Ouverte
#5,652 6 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

bug-pending-triage
Langage dominant
JavaScript
Étoiles
1.1k
Forks
204
Merge moyen
1 j 9 h
PR mergées (30 j)
8

Description

Issue Description

When I run ns debug ios on simulator, the app is installed but not launched. When I launch it, it works. After saving changes in code, those are compiled and installed, but app is not restarted. If I manually restart the app in simulator, the changes are there. Android works fine in emulator.
There is one error in console, when I run ns debug ios or ns run ios, but it doesn't re-appear after that, on livesync:

Installing on device 50C0BB46-3D96-4FD7-9FC9-83613FA3D3E8...
Successfully installed on device with identifier '50C0BB46-3D96-4FD7-9FC9-83613FA3D3E8'.
Successfully transferred all files on device 50C0BB46-3D96-4FD7-9FC9-83613FA3D3E8.
Restarting application on device 50C0BB46-3D96-4FD7-9FC9-83613FA3D3E8...
Error while trying to start application org.nativescript.example on device 50C0BB46-3D96-4FD7-9FC9-83613FA3D3E8. Error is: Command xcrun with arguments simctl terminate 50C0BB46-3D96-4FD7-9FC9-83613FA3D3E8 org.nativescript.example failed with exit code 3. Error output:
 An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
Application termination failed.
FBSSystemService reported failure without an error, possibly because the app is not currently running.

Stack:

OS: darwin x64
MacOS Monterey 12.2.1
xCode v13.3 (13E113)
Node v16.14.1
npm v8.5.0
NativeScript CLI v8.2.2
Angular CLI v8.3.21

package.json

{
  "name": "some-app",
  "main": "./src/main.ts",
  "version": "1.0.0",
  "private": true,
  "dependencies": {
    "@angular/animations": "~13.2.0",
    "@angular/common": "~13.2.0",
    "@angular/compiler": "~13.2.0",
    "@angular/core": "~13.2.0",
    "@angular/forms": "~13.2.0",
    "@angular/platform-browser": "~13.2.0",
    "@angular/platform-browser-dynamic": "~13.2.0",
    "@angular/router": "~13.2.0",
    "@nativescript/angular": "^13.0.0",
    "@nativescript/core": "8.2.1-next-03-19-2022-2010078648",
    "@nativescript/theme": "~3.0.2",
    "moment": "^2.29.1",
    "nativescript-phone": "^3.0.3",
    "nativescript-ui-sidedrawer": "^10.0.2",
    "rxjs": "~7.5.0",
    "zone.js": "~0.11.5"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~13.2.0",
    "@angular/compiler-cli": "~13.2.0",
    "@nativescript/android": "8.2.2",
    "@nativescript/ios": "8.2.2",
    "@nativescript/types": "~8.2.0",
    "@nativescript/webpack": "~5.0.6",
    "@ngtools/webpack": "~13.2.0",
    "nativescript": "^8.2.2",
    "typescript": "~4.5.5"
  }
}
Reproduction

No response

Relevant log output (if applicable)

No response

Environment

No response

Please accept these terms

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Commencez par le chemin de redémarrage de livesync de ns debug ios et ns run ios, en vous concentrant sur l’échec signalé de xcrun simctl terminate lorsque l’application n’est pas en cours d’exécution. La tâche est considérée comme terminée lorsque le simulateur iOS lance initialement l’application et la redémarre après les modifications, tandis que le comportement de l’émulateur Android reste inchangé.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
ios, javascript
Domaine
cli, mobile-dev
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.