gpt4 book ai didi

ios - Flutter ios cloud_firestore 给出错误

转载 作者:行者123 更新时间:2023-11-29 05:30:07 33 4
gpt4 key购买 nike

我的cloud_firestore插件有问题,我之前用这个插件创建了一个应用程序,它工作正常,我下载了GoogleService-info并在xcode中将此文档放在info.plist旁边的runner文件夹中,但是当我尝试时处理一个新项目时,我抛出了 7 个异常,然后应用程序中的屏幕变黑并退出。

launching lib/main.dart on iPhone Xʀ in debug mode...

Xcode build done. 17.8s

Configuring the default Firebase app...

*** First throw call stack:

0 CoreFoundation 0x0000000114d498db __exceptionPreprocess + 331
1 libobjc.A.dylib 0x00000001142ecac5 objc_exception_throw + 48
2 CoreFoundation 0x0000000114d49735 +[NSException raise:format:] + 197
3 Runner 0x000000010f4ccbfa +[FIRApp configure] + 138
4 Runner 0x000000010f99ebd6 -[FLTCloudFirestorePlugin init] + 214

5 Runner 0x000000010c96176c +[FLTCloudFirestorePlugin registerWithRegistrar:] + 300

6 Runner 0x000000010c343fb0 +[GeneratedPluginRegistrant registerWithRegistry:] + 112

7 Runner <…>

Error connecting to the service protocol: HttpException: , uri =

Exited (sigterm)

最佳答案

您可能在没有 Xcode 的情况下添加文件:

  1. 在 Xcode 中打开 ios 项目
  2. GoogleService-info 拖放到 Runner/Runner 中 enter image description here
  3. 文件 ios/Runner.xcodeproj/project.pbxproj 需要由 Xcode 自动更改。

关于ios - Flutter ios cloud_firestore 给出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57685979/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com