LoginSignup
4
4

More than 5 years have passed since last update.

Flutterでの開発に実機を利用していて、Error connecting to the service protocol: HttpExceptionが発生したときの対処法

Last updated at Posted at 2019-03-26

Flutterで開発をしているなかで、以下のようなエラーが発生した

Error connecting to the service protocol: HttpException: , uri = http://127.0.0.1:1024/ws

これ、ほっとくと、Hot Reloadができなくなる。
Flutterで開発しているなかで、結構痛手である。

これの解決策だが、Xcodeの実機設定で対応できることが判明した。

解決策

  1. Xcodeを開く
  2. window > Devices and Simulators(Shift + Command + 2)を開く
  3. 左のConnectedリストから対象端末を選択
  4. connect via networkをonにする

以上だ。

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4