nativescript-cli icon indicating copy to clipboard operation
nativescript-cli copied to clipboard

Attaching Debug from Chrome kills app on iOS

Open mrwrighty opened this issue 4 years ago • 1 comments

NS 8.0.7 Xcode 12.4

Every time I run ns debug ios the app compiles fine and runs on the simulator.

If I open Chrome to start the debugging process with devtools://devtools/bundled/inspector.html?ws=localhost:41000 it immediately crashes the app.

Eventually after 4 or 5 times of restarting the app on the simulator the debug will connect. Error is

(Asterix added to hide Bundle ID)

Successfully synced application com..**** on device 4023F1A9-E743-4AD5-9D6D-4A22C0C0A6EE. CONSOLE LOG: Loading inspector modules... CONSOLE LOG: Finished loading inspector modules. Frontend client connected. NativeScript debugger has opened inspector socket on port 18185 for com..*****. Backend socket created. Backend socket closed! Frontend socket closed! CONSOLE LOG: Loading inspector modules... CONSOLE LOG: Finished loading inspector modules. Frontend client connected. NativeScript debugger has opened inspector socket on port 18186 for com... Backend socket created. Backend socket closed! Frontend socket closed!

I've removed the platforms folder and rebuilt but the problem persists.

ns doctor shows

✔ Component @nativescript/core has 8.0.7 version and is up to date. ✔ Component @nativescript/ios has 8.0.0 version and is up to date.

Is this correct.

mrwrighty avatar Jun 11 '21 10:06 mrwrighty

This has been the case for me since 7.x https://github.com/NativeScript/nativescript-cli/issues/5437

Still trying to make it work.

nikoTM avatar Jul 06 '21 17:07 nikoTM