admob-plus / admob-plus

Trustable AdMob Plugin for Cordova, Capacitor, Ionic, React Native
https://admob-plus.github.io
MIT License
361 stars 150 forks source link

Not able to show admob ads #223

Closed merbin2012 closed 3 years ago

merbin2012 commented 3 years ago

While run the code after adding admob plugin, it show the following error. Kindly help me.

/Users/merbinjoe/LearnHTML/platforms/ios/Learn HTML/Bridging-Header.h:29:9: note: in file included from /Users/merbinjoe/LearnHTML/platforms/ios/Learn HTML/Bridging-Header.h:29:
#import "AMSPlugin-Bridging-Header.h"
        ^
/Users/merbinjoe/LearnHTML/platforms/ios/Learn HTML/Plugins/admob-plus-cordova/AMSPlugin-Bridging-Header.h:2:9: error: 'GoogleMobileAds/GoogleMobileAds.h' file not found
#import <GoogleMobileAds/GoogleMobileAds.h>
        ^
1 error generated.
<unknown>:0: error: failed to emit precompiled header '/Users/merbinjoe/Library/Developer/Xcode/DerivedData/Learn_HTML-byesqoxaqobftubfzgapsgfpjmyc/Build/Intermediates.noindex/PrecompiledHeaders/Bridging-Header-swift_2OI441CGMURNS-clang_2U3QCTS2L16WS.pch' for bridging header '/Users/merbinjoe/LearnHTML/platforms/ios/Learn HTML/Bridging-Header.h'

screenshot-github com-2021 02 09-13_51_15

ratson commented 3 years ago

@merbin2012 I cannot tell what goes wrong from just the error message, can you prepare a repo for me to check?

merbin2012 commented 3 years ago

After one day research, I fixed it by adding the pod project into the my project. Should we do the same to all projects? I thought all the process will automatically update.

I don't know I did the right or not. But now the ads showing in my project.

thomasmso commented 3 years ago

@merbin2012 - You should move over to AppLovin MAX instead, you'll get better support there.

merbin2012 commented 3 years ago

@merbin2012 - You should move over to AppLovin MAX instead, you'll get better support there.

Spam

ratson commented 3 years ago

@merbin2012 If you install the plugin with cordova CLI, the project should setup automatically as the plugin has included the SDK pod as dependency.

merbin2012 commented 3 years ago

Yes I am using cordova CLI only, also all the pod and its dependence added automatically. But need to import the pod module manually, otherwise the above error is shown.

On Wed, 10 Feb, 2021, 8:17 PM (◕ᴥ◕), notifications@github.com wrote:

@merbin2012 https://github.com/merbin2012 If you install the plugin with cordova CLI, the project should setup automatically as the plugin has included the SDK pod as dependency.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/admob-plus/admob-plus/issues/223#issuecomment-776757756, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4EGEH4O2PBLRWR5XKJ66LS6KMBHANCNFSM4XKQ7FKQ .

ratson commented 3 years ago

@merbin2012 I have no idea how the error is occurred, would you provide steps how is it happened?

gigafishapps commented 3 years ago

Same issue here. This plugin is broken.

ratson commented 3 years ago

Close as not enough way to reproduce.