Swift Flatter Desktop:Firebase Auth找不到有效的GoogleService-Info.plist

Swift Flatter Desktop:Firebase Auth找不到有效的GoogleService-Info.plist,swift,flutter,dart,Swift,Flutter,Dart,我创建了一个桌面颤振项目。我在pubspec.yaml库中添加了: firebase_认证:^0.15.5+2 阅读更多: 我打开Xcode在runner文件夹中插入googleservices.plist。当我运行这个项目时,我得到了这个错误,我不知道我做错了什么程序。谢谢你的帮助,谢谢 在发布这篇文章之前,我在这里得到了通知,但找不到解决方案。 解决了我将其添加到iOS文件夹而不是MacOS文件夹的问题 记住在xcode中允许传入和传出连接。 否则,它将不适用于他们 他们必须将文件放入

我创建了一个桌面颤振项目。我在pubspec.yaml库中添加了:
firebase_认证:^0.15.5+2
阅读更多:

我打开Xcoderunner文件夹中插入googleservices.plist。当我运行这个项目时,我得到了这个错误,我不知道我做错了什么程序。谢谢你的帮助,谢谢

在发布这篇文章之前,我在这里得到了通知,但找不到解决方案。


解决了我将其添加到iOS文件夹而不是MacOS文件夹的问题

记住在xcode中允许传入和传出连接。 否则,它将不适用于他们

他们必须将文件放入资源文件夹中。


您好,您是否使用了与iOS应用程序相同的GoogleService-Info.plist?因为我无法在firebase上看到您可以为macos dekstop应用程序创建项目@DomingoMGYes,同一个文件
Launching lib/main.dart on macOS in debug mode...
Building macOS application...                                                  
2020-03-18 16:08:06.178 elahorcadocanariowebpanel[39295:504644] Configuring the default Firebase app...
2020-03-18 16:08:06.186 elahorcadocanariowebpanel[39295:504644] *** Terminating app due to uncaught exception 'com.firebase.core', reason: '`[FIRApp configure];` (`FirebaseApp.configure()` in Swift) could not find a valid GoogleService-Info.plist in your project. Please download one from https://console.firebase.google.com/.'
*** First throw call stack:
(
        0   CoreFoundation                      0x00007fff3a4048ab __exceptionPreprocess + 250
        1   libobjc.A.dylib                     0x00007fff706be805 objc_exception_throw + 48
        2   CoreFoundation                      0x00007fff3a404701 +[NSException raise:format:] + 189
        3   elahorcadocanariowebpanel           0x0000000101fd152a +[FIRApp configure] + 138
        4   elahorcadocanariowebpanel           0x0000000101ff6fa6 -[FLTFirebaseAuthPlugin init] + 214
        5   elahorcadocanariowebpanel           0x0000000101ff6d83 +[FLTFirebaseAuthPlugin registerWithRegistrar:] + 195
        6   elahorcadocanariowebpanel           0x0000000101f8cc3c $s25elahorcadocanariowebpanel24RegisterGeneratedPlugins8registryySo21FlutterPluginRegistry_p_tF + 188
        7   elahorcadocanariowebpanel           0x0000000101f8c49c $s25elahorcadocanariowebpanel17MainFlutterWindowC12awakeFromNibyyF + 492
        8   elahorcadocanariowebpanel           0x0000000101f8c62b $s25elahorcadocanariowebpanel17MainFlutterWindowC12awakeFromNibyyFTo + 43
        9   CoreFoundation                      0x00007fff3a37c965 -[NSSet makeObjectsPerformSelector:] + 231
        10  AppKit                              0x00007fff3752a2f0 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 1485
        11  AppKit                              0x00007fff3751e156 loadNib + 401
        12  AppKit                              0x00007fff3751d719 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 693
        13  AppKit                              0x00007fff3751d36f -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 201
        14  AppKit                              0x00007fff3751d148 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 446
        15  AppKit                              0x00007fff3750f355 NSApplicationMain + 505
        16  elahorcadocanariowebpanel           0x0000000101f8cb6d main + 13
        17  libdyld.dylib                       0x00007fff71a2c7fd start + 1
        18  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Error waiting for a debug connection: The log reader stopped
unexpectedly.
Error launching application on macOS.