NativeScript / NativeScript/nativescript-cli
Attaching Debug from Chrome kills app on iOS
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 204
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 8
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず iOS シミュレータで ns debug ios を実行して失敗を再現し、次に報告された devtools URL を使って Chrome を接続し、ソケット切断ログを比較します。修正後はアプリが実行されたままになり、デバッガーが確実に接続できるようになるはずです。報告された NativeScript、iOS、Xcode のバージョンで確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- ios, javascript
- 領域
- cli, mobile-dev
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100