question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Livesync not working for iOS simulator

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
richardman1commented, May 18, 2022

@romandragan this fixed it for me! Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

nativescript+angular livesync doesn't work on mac
The tutorial for ios DOES NOT WORK. Suggested fixes from stackoverflow DO NOT WORK. Live Sync does not update. Can someone please help?...
Read more >
NativeScript 1.2.2 service release is now live
NativeScript latest bits are now live and you can enjoy several bug fixes in the tooling and in the iOS and Android runtimes....
Read more >
Untitled
Lumion for Revit-LiveSync will not work on your computer. ... the integrated device simulator and across all connected devices–without having to recompile.
Read more >
nativescript-liveedit
A LiveEdit/LiveSync NativeScript module for Android v2.3.0 Runtimes. ... not cause any issues when you deploy to your iOS devices/emulator.
Read more >
So NativeScript now requires a Mac to develop for iOS
2. Use AppBuilder and deploy development builds to physical devices. The obvious problem is that you've got to have a collection of devices...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found