gpt4 book ai didi

flutter - 使用 Flutter 的 firebase_admob 插件时找不到 FirebaseAdMobPlugin.h 文件

转载 作者:IT王子 更新时间:2023-10-29 07:06:55 27 4
gpt4 key购买 nike

当使用 firebase_admob 插件时,我无法在 iOS 模拟器上构建。
我可以在 Android 上构建。

控制台日志:

=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
/Users/rkowase/StudioProjects/stopwatch/ios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error: 'firebase_admob/FirebaseAdMobPlugin.h' file not found
#import <firebase_admob/FirebaseAdMobPlugin.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Could not build the application for the simulator.
Error launching application on iPhone X.

flutter 医生

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.1.5, on Mac OS X 10.12.6 16G1114, locale en-JP)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
[✓] Android Studio (version 3.0)
[✓] Connected devices (2 available)

• No issues found!

pubspec.yaml

dependencies:
flutter:
sdk: flutter
firebase_admob:

我使用 firebase_admob v0.5.0
https://pub.dartlang.org/packages/firebase_admob

示例代码 https://github.com/rkowase/flutter-firebase-admob-sample

最佳答案

我通过 this 解决方法解决了这个问题。

链接

“Made Podfiles use symlinks to local pod”不起作用 · 问题 #15099 · flutter/flutter https://github.com/flutter/flutter/issues/15099

objective-c - Swift 编译器错误:“框架模块内的非模块化 header ” - 堆栈内存溢出 Swift compiler error: "non-modular header inside framework module"

在 iOS 构建中找不到 PathProvider - Google 网上论坛 https://groups.google.com/forum/#!msg/flutter-dev/7QRk1RphLDE/5rLS4CciBwAJ

关于flutter - 使用 Flutter 的 firebase_admob 插件时找不到 FirebaseAdMobPlugin.h 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49473823/

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