我使用 iPhone 11 模拟器。我点击了运行按钮并得到了以下结果:
Launching lib/main.dart on iPhone 11 in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 37.0s
Waiting for iPhone 11 to report its views...
Debug service listening on ws://127.0.0.1:65405/L1H3N-Q0JFU=/ws
Syncing files to device iPhone 11...
Lost connection to device.
它打开应用程序后立即关闭。
我执行了 flutter clean
,但它没有起作用。
这是我的flutter doctor
:
[✓] Flutter (Channel master, 1.24.0-2.0.pre.98, on Mac OS X 10.15.4 19E287 darwin-x64, locale en-GB)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.49.3)
[✓] Connected device (1 available)