说明
使用 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.
在终端运行brew upgrade --fetch-HEAD usbmuxd