Flutter ios 真机 debug 运行总是 Lost connection to device

说明

使用 xcode 能够正常真机运行,通过 fultter 命令 flutter run -d xxx --debug 启动之后就会失去链接。

也没有其他报错,只是无法热重载。

启动过程

➜  demo1 git:(master) ✗ flutter run --debug -d ba48xxxxxxxxxxxxxx
Launching lib/main.dart on Postbird in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 76P5S47NGR
Running Xcode build...                                                  
                                                   
 ├─Assembling Flutter resources...                           1.6s
 └─Compiling, linking and signing...                         3.7s
Xcode build done.                                            8.8s
Installing and launching...                                        12.1s
Syncing files to device Postbird...                                     
 2,242ms (!)                                       

🔥  To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
An Observatory debugger and profiler on Postbird is available at: http://127.0.0.1:1027/FVqUgaoQ4qw=/
For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
Lost connection to device.
阅读 10.1k
1 个回答
新手上路,请多包涵

在终端运行brew upgrade --fetch-HEAD usbmuxd

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏