我正在尝试将admob插件添加到我的flutter应用中。进行得不太顺利。
出了什么问题
对于iOS版本,我在编译应用程序时收到错误消息:
path: satisfied (Path is satisfied), interface: en0
Configuring the default Firebase app...
6.11.0 - [Firebase/Core][I-COR000004] App with name __FIRAPP_DEFAULT does not exist.
6.11.0 - [Firebase/Core][I-COR000012] Could not locate configuration file: 'GoogleService-Info.plist'.
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23c4f02e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff50b97b20 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23c4ee6c +[NSException raise:format:] + 188
3 Runner 0x000000010c0a6d1a +[FIRApp configure] + 138
4 Runner 0x000000010c106cb2 -[FLTFirebaseAdMobPlugin init] + 258
5 Runner 0x000000010c106a26 +[FLTFirebaseAdMobPlugin registerWithRegistrar:] + 70
6 Runner 0x000000010c0944d0 +[GeneratedPluginRegistrant registerWithRegistry:] + 112
7 Runner <…>
我的配置是什么?
好,我已将GoogleService-Info.plist文件与info.plist文件放在同一目录中。我什至不确定我是否需要此广告。这仅用于分析,我不需要分析。是吗?
对于Android与Admob的集成-看起来非常简单。 我该怎么办?
我真的迷路了。不知道我还能做什么。
3。已添加软件包:
关于我的包裹,这是我正在使用的东西:
firebase_admob: ^0.9.0+9
cloud_firestore: ^0.12.10
firebase_analytics: ^5.0.6
** 4。其他问题**
在Podfile中,我应该取消注释:
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
?也许我还需要较低的模型才能工作?
答案 0 :(得分:0)
这是很常见的事情,我忘记在Runner.xcworkspace中添加GoogleService-Info.plist
打开Runner.xcworkspace并在“ runner”上单击鼠标右键,然后选择“添加文件”,然后选择GoogleService-Info.plist