NativeScript / NativeScript/nativescript-cli
Attaching Debug from Chrome kills app on iOS
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1.1k
- Forks
- 204
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 8
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den Fehler mit ns debug ios im iOS-Simulator zu reproduzieren, verbinde dann Chrome über die gemeldete Devtools-URL und vergleiche die Socket-Close-Logs. Eine Behebung würde die App weiterlaufen lassen und dem Debugger ermöglichen, sich zuverlässig zu verbinden; überprüfe dies anhand der gemeldeten NativeScript-, iOS- und Xcode-Versionen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- ios, javascript
- Bereich
- cli, mobile-dev
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100