Flutter 1.22.0 IOS应用程序连接丢失问题

时间:2020-10-20 15:31:00

标签: flutter flutter-ios

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

颤动运行--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意外退出。”错误。请参见下面的屏幕截图。不确定是否与此问题有关... enter image description here

1 个答案:

答案 0 :(得分:0)

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