当我try run 时出现此错误.

Launching lib/main.dart on iPhone XR in debug mode...
Starting Xcode build...

Xcode build done.                                           35.9s

*** First throw call stack:

(

0   CoreFoundation                      0x00000001099ff1bb __exceptionPreprocess + 331

1   libobjc.A.dylib                     0x0000000108f9d735 objc_exception_throw + 48

2   CoreFoundation                      0x00000001099ff015 +[NSException raise:format:] + 197

3   Runner                              0x00000001040a8aa0 +[FIRApp configure] + 576

4   Runner                              0x00000001044a931c -[FLTCloudFirestorePlugin init] + 188

5   Runner                              0x00000001044a91c9 +[FLTCloudFirestorePlugin registerWithRegistrar:] + 297

6   Runner                              0x000000010404d19e +[GeneratedPluginRegistrant registerWithRegistry:] + 126

7   Runner                        <…>

[✓]Ffltter(通道开发,v1.1.5,在MacOS X 10.14.2 18C54上,区域设置EN-NG)

[✓]安卓工具链-针对安卓设备进行开发(安卓SDK版本28.0.3)

[✓]IOS工具链-为IOS设备开发(Xcode10.1)

[✓] Android Studio(3.2版)

[✓] IntelliJ IDEA终极版(2018.1.6版)

[✓] 已连接设备(1个可用)

·未发现任何问题!

推荐答案

我猜您忘了将GoogleService-Info.plist个文件添加到您的iOS项目中

请按照此codelab (point 6 and 7 specifically)查看详细说明.

请记住,将其从finder/explorercommand line复制到您的ios/Runner文件夹中是不够的.

You need to open the 100 with 101 and add the file to the project tree.Xcode needs to be aware of this file, so that it can be copied in the application bundle.

Dart相关问答推荐

在异步方法中,有没有更优雅的方式在DART中等待!=NULL?

程序给出不准确的值

Dart:当两个或多个任务等待同一个 Future 时会发生什么

如何获取包含在 Dart 包中的assets资源 的文件路径?

跳过 JavaScript 直接进入 Dart

在 Dart 中处理字节数组时,使用 Uint8List 优于 List 有什么优势?

dart 中 call() 的实现是什么?

Flutter - 在 null 上调用了 getter 'length'

自定义声音推送通知不起作用

属性 'docs' 不能无条件访问,因为接收到的可能是 'null' Flutter

在 Dart 中向服务器发出多个独立请求的最佳方式

有没有更好的方法来解析 Dart 中的 int

Flutter-键盘显示和隐藏导致生成调用

如何 Select 性地传递可选参数?

Flutter /dart 错误:参数类型'Future'不能分配给参数类型'File'

~ 在 Dart 中是什么意思?

Cancel stream onData

安装 dart-sdk 后找不到 pub 命令

具有 Maps 的 Null 感知运算符

如何在 Dart 中将日期/时间字符串转换为 DateTime 对象?