简体   繁体   English

Flutter iOS Cloud_FireStore提供错误

[英]Flutter ios cloud_firestore giving errors

I have a problem with cloud_firestore plugin, I created an app before with this plugin and it worked fine, I download GoogleService-info and in xcode I put this document in runner folder, next to info.plist, but when I try to work with a new project throw me 7 exceptions and then the screen in app turn in black and exited. 我的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)

You probably adding the file without Xcode: 您可能添加了不带Xcode的文件:

  1. open the ios the project in Xcode 在Xcode中打开ios项目
  2. drag and drop GoogleService-info in Runner/Runner 在Runner / Runner中拖放GoogleService-info 在此处输入图片说明
  3. the file ios/Runner.xcodeproj/project.pbxproj need to be changed automatically by Xcode. ios/Runner.xcodeproj/project.pbxproj需要自动更改文件ios/Runner.xcodeproj/project.pbxproj

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Flutter 中的 Firebase cloud_firestore 版本问题 - iOs M1 - Firebase cloud_firestore version issue in Flutter - iOs M1 Flutter (iOS) - 在 GeneratedPluginRegistrant.m 中找不到模块“cloud_firestore” - Flutter (iOS) - Module 'cloud_firestore' not found in GeneratedPluginRegistrant.m Flutter on IOS:致命错误:找不到模块“cloud_firestore” - Flutter on IOS: fatal error: module 'cloud_firestore' not found Flutter 带有“cloud_firestore”的 pod 安装错误 - Flutter pod install error with 'cloud_firestore' 将 cloud_firestore 添加到 pubspec Flutter 后,无法为模拟器构建应用程序 - Could not build the application for the simulator after adding cloud_firestore to pubspec Flutter CocoaPods 找不到 pod“Firebase/Core”的兼容版本 | cloud_firestore,Flutter - CocoaPods could not find compatible versions for pod "Firebase/Core” | cloud_firestore, Flutter 致命错误:找不到模块“cloud_firestore” - fatal error: module 'cloud_firestore' not found 无法安装 cloud_firestore 所需的 BoringSSL-GRPC (0.0.7) - Not able to install BoringSSL-GRPC (0.0.7) required by cloud_firestore CocoaPods 找不到 pod“cloud_firestore”的兼容版本 - CocoaPods could not find compatible versions for pod "cloud_firestore" Cloud Firestore身份验证iOS - Cloud Firestore Authentication iOS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM