【问题标题】:Flutter 1.22.0 IOS app connection lost issueFlutter 1.22.0 IOS 应用连接丢失问题
【发布时间】:2021-02-03 11:24:42
【问题描述】:

我已从旧版本迁移到 Flutter 1.22.0。当我尝试在 IOS 模拟器中运行应用程序时,它只是打开应用程序并崩溃并说连接丢失。但是在 Android Studio 中,它仍然显示它正在运行,我的意思是“运行和调试”按钮被禁用但停止按钮处于活动状态。

flutter run --verbose 输出为here

我在最后看到的日志之后没有任何反应。

Launching lib/main.dart on iPhone 11 Pro in debug mode...
Running Xcode build...
Xcode build done.                                           18.4s
Configuring the default Firebase app...
6.26.0 - [Firebase/Core][I-COR000004] App with name __FIRAPP_DEFAULT does not exist.
6.26.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
[Firebase/Crashlytics] Version 4.1.1
Configured the default Firebase app __FIRAPP_DEFAULT.
6.26.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60600000 started
6.26.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled 
6.26.0 - [Firebase/Analytics][I-ACS031025] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist
Waiting for iPhone 11 Pro to report its views...
Debug service listening on ws://127.0.0.1:55184/qe2GMcl6YA3=/ws
Syncing files to device iPhone 11 Pro...
Lost connection to device.

每当我启动 IOS 模拟器时,它都会给我“Spotlight 意外退出。”错误。请参阅下面的屏幕截图。不确定是否与此问题有关...

【问题讨论】:

  • 你能分享flutter run --verbose的结果吗?
  • 谢谢,我已将链接添加到问题的输出中。

标签: flutter flutter-ios


【解决方案1】:

您仍在使用旧版本的 Flutter。 v1.22.2 本周发布。尝试使用flutter upgrade --force 升级 Flutter。

【讨论】:

  • 谢谢。我更新到最新的,但它仍然给出同样的错误。
猜你喜欢
  • 2021-01-11
  • 1970-01-01
  • 2022-12-28
  • 2021-01-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-08-07
相关资源
最近更新 更多