gpt4 book ai didi

ios - Flutter firebase_admob 在默认应用安装的 iOS 上不工作

转载 作者:行者123 更新时间:2023-11-28 23:29:50 27 4
gpt4 key购买 nike

重现步骤:

  1. create a default app in Android Studio
  2. build and run the app successfully in iOS simulator through Android Studio
  3. add dependency firebase_admob: ^0.9.0+2 in pubspec.yaml
  4. app builds successfully but crashes on startup
  5. follow instructions to add GADApplicationIdentifier with test ID code into ios/Runner/info.plist file

应用程序在启动时仍然崩溃。按照此处详述的说明在 iOS 上进行设置:https://pub.dev/packages/firebase_admob .

据我所知,我已按照说明完成所有操作,所以不知道为什么它不适用于默认应用。

完成上述所有步骤后我得到的错误是:

Xcode build done. 8.5s
Configuring the default Firebase app...
6.4.0 - [Firebase/Core][I-COR000004] App with name __FIRAPP_DEFAULT does not exist.
6.4.0 - [Firebase/Core][I-COR000012] Could not locate configuration file: 'GoogleService-Info.plist'.
6.4.0 - [Firebase/Core][I-COR000005] No app has been configured yet.
6.4.0 - [Firebase/Core][I-COR000005] No app has been configured yet.

*** First throw call stack: ( 0 CoreFoundation 0x0000000113b521bb
__exceptionPreprocess + 331 1 libobjc.A.dylib 0x00000001130f0735
objc_exception_throw + 48 2 CoreFoundation 0x0000000113b52015 +
[NSException raise:format:] + 197 3 Runner 0x000000010bd33af0 +[FIRApp
configure] + 576 4 Runner 0x000000010bd7f1c5 -[FLTFirebaseAdMobPlugin
init] + 261 5 Runner 0x000000010bd7ef2e +[FLTFirebaseAdMobPlugin
registerWithRegistrar:] + 78 6 Runner 0x000000010bd333fb +
[GeneratedPluginRegistrant registerWithRegistry:] + 123 7 Runner <…>

最佳答案

我相信this medium post是最全面的 iOS Firebase 设置指南,但是可以跳过第 1 点 - 我有一个使用 firebase_admob 0.8.0+3 的应用,一旦完成所有其他步骤,它就可以在 iOS 下完美运行。

关于ios - Flutter firebase_admob 在默认应用安装的 iOS 上不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57052081/

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