ios - flutter 失去与设备的连接

标签 ios flutter

我使用 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)

最佳答案

当我尝试从 XCode 运行应用程序时,它向我显示了实际错误。我在 Info.plist 文件中缺少谷歌广告标识符。一旦我添加它,它就开始正常工作了。
感谢您的时间和帮助。

关于ios - flutter 失去与设备的连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64460273/

相关文章:

ios - 每 x 秒更新一次带有速度的标签

objective-c - 使用performSelectorOnMainThread时如何定位父对象?

flutter - 如何在 flutter 中从右到左制作图片动画

http - 为 http : ^0. 12.0 包设置 ssl

firebase - Flutter处理调试控制台错误 'Method not found'

ios - swift 3 : Realm creates additional object instead of updating the exisiting one

ios - Xcode,无法读取包内容(错误域 = NSCocoaErrorDomain 代码 = 260

Flutter web - 服务器响应状态为 404(未找到),main.dart.js :1

flutter - Flutter&Geocoder&Geolocator:如何以英语获取国家名称?

ios - SourceKitService 消耗 CPU 并导致 Xcode 停止