[英]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的文件:
GoogleService-info
in Runner/Runner 在Runner / Runner中拖放GoogleService-info
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.