我有一个使用Firebase身份验证库的Flutter 应用程序.当我启动它的iOS版本时,它给我显示了一个空白的白色屏幕,然后挂起了.我按照所有步骤将一些与Firebase相关的标志添加到Info.plist中,比如FirebaseScreenRecordingEnabled-no、FirebaseScreenRecordingDeactiv-yes和另外一两个. 我已try 清理Build文件夹和Flutter 缓存.我也试了一下下面的答案: iOS Flutter with Firebase : white screen and SIGABRT in FlutterAppDelegate on launch

~/Documents/Work/Workspaces/flutter/myapp $ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.10.7-pre.80, on Mac OS X 10.15.2 19C57, locale en-IN)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.2)
[✓] Android Studio (version 3.5)
[!] VS Code (version 1.41.1)
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

仅供参考,我正在使用Android Studio开发一款Flutter 翼应用程序.

以下是来自Xcode记录器的日志(log):

2020-01-09 21:29:10.811285+0530 my-app[4621:1081677] Failed to find snapshot: /var/containers/Bundle/Application/57CC0DF5-D142-4748-A3D3-66E62A9F1A53/my-app.app/Frameworks/App.framework/flutter_assets/kernel_blob.bin
2020-01-09 21:29:11.365554+0530 my-app[4621:1081942] flutter: Observatory listening on http://127.0.0.1:57358/yuCVtFtKdlI=/
2020-01-09 21:29:11.426615+0530 my-app[4621:1081677] Configuring the default Firebase app...
2020-01-09 21:29:11.427922+0530 my-app[4621:1081920] 6.14.0 - [Firebase/Core][I-COR000004] App with name __FIRAPP_DEFAULT does not exist.
2020-01-09 21:29:11.429326+0530 my-app[4621:1081920] 6.14.0 - [Firebase/Core][I-COR000008] The project's Bundle ID is inconsistent with either the Bundle ID in 'GoogleService-Info.plist', or the Bundle ID in the options if you are using a customized options. To ensure that everything can be configured correctly, you may need to make the Bundle IDs consistent. To continue with this plist file, you may change your app's bundle identifier to 'dev.bipin.myapp'. Or you can download a new configuration file that matches your bundle identifier from https://console.firebase.google.com/ and replace the current one.
2020-01-09 21:29:11.547978+0530 my-app[4621:1081677] Configured the default Firebase app __FIRAPP_DEFAULT.
2020-01-09 21:29:11.614019+0530 my-app[4621:1081932] [VERBOSE-2:engine.cc(127)] Engine run configuration was invalid.
2020-01-09 21:29:11.614685+0530 my-app[4621:1081932] [VERBOSE-2:shell.cc(443)] Could not launch engine with configuration.
2020-01-09 21:29:11.696741+0530 my-app[4621:1081928] 6.14.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60107000 started
2020-01-09 21:29:11.697266+0530 my-app[4621:1081928] 6.14.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled
2020-01-09 21:29:13.657220+0530 my-app[4621:1081923] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2020-01-09 21:29:13.662995+0530 my-app[4621:1081923] [MC] Reading from public effective user settings.
2020-01-09 21:29:34.648535+0530 my-app[4621:1082005] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x14de28120] get output frames failed, state 8196
2020-01-09 21:29:34.649072+0530 my-app[4621:1082005] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x14de28120] get output frames failed, state 8196
2020-01-09 21:29:34.650329+0530 my-app[4621:1082005] TIC Read Status [1:0x0]: 1:57
2020-01-09 21:29:34.650477+0530 my-app[4621:1082005] TIC Read Status [1:0x0]: 1:57
2020-01-09 21:29:42.223040+0530 my-app[4621:1082027] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x14dd3cee0] get output frames failed, state 8196
2020-01-09 21:29:42.224070+0530 my-app[4621:1082027] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x14dd3cee0] get output frames failed, state 8196
2020-01-09 21:29:42.225360+0530 my-app[4621:1082027] TIC Read Status [2:0x0]: 1:57
2020-01-09 21:29:42.225503+0530 my-app[4621:1082027] TIC Read Status [2:0x0]: 1:57

但到目前为止还没有任何收获.有人能帮我一下吗? 谢谢

推荐答案

哦,我终于发现iOS 14和更高版本的设备存在这个框架问题,请在这里查看更多详细信息:https://github.com/flutter/flutter/issues/60657#issuecomment-688478590

Flutter相关问答推荐

使用Bg晃动背景图像边界

无法在Flatter中设计正确的布局

为什么要在值列表中两次放入空安全性

Flutter BLoC et workmanager:如何创建独特的仓库初始化模式?

Flutter 图标记移动

播放特定持续时间Flutter 的音频

在flutter中实现类似3D的可滚动堆叠分页列表

Flutter中的编译时间常量方法

Flutter 需要 Xcode 14 或更高版本

Supabase Auth:重定向到 Google.com 而不是我的应用程序

带有命名参数的回调函数不起作用

TextField 中的富文本并获取 RenderParagraph

尽管我的 url 链接正确,但 ArgumentError(无效参数:URI 文件中未指定主机:///)错误

在 Flutter 中使用条件语句设置 ImageProvider Object 类型的背景图像

如何在列表视图生成器中显示图像

添加appBar时绘制的线条发生偏移 Flu

更改下拉按钮的背景 colored颜色 - flutter

如何设置行中项目之间的空格相等?

statefulWidget 无法进行所需更改的问题

如何将 void 函数放入单独的 dart 文件的单独页面中