Livesync not working for iOS simulator
See original GitHub issueIssue 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
- I have searched the existing issues as well as StackOverflow and this has not been posted before
- This is a bug report
- I agree to follow this project’s Code of Conduct
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@romandragan this fixed it for me! Thanks!
See https://github.com/NativeScript/NativeScript/issues/9907