kloder-games / godot-admob

Module Admob for Godot engine
MIT License
360 stars 61 forks source link

iOS Compilation is not working, Error: (modules/admob/ios/src/AdmobBanner.h:1:9:(1:9-1:42): fatal error. 'GoogleMobileAdsGADBannerView.h' file not found [1]) #87

Closed gumaciel closed 5 years ago

gumaciel commented 5 years ago

OS target (Android/iOS): iOS

Godot version: 3.0.6

Issue description:

Hello, I'm trying to compile the AdMob for iOS module (http://docs.godotengine.org/en/stable/development/compiling/compiling_for_ios.html). I did everything that was requested but is giving this error: image

Ps: the version of Google Mobile Ads SDK that I downloaded is the latest (7.44.0), I could not find the version 7.41.0

brendonion commented 3 years ago

@Tobi-La are you using mono?

Tobi-La commented 3 years ago

@Tobi-La are you using mono?

Not intentionally, I tried building with

scons p=iphone tools=no target=release arch=arm

brendonion commented 3 years ago

Okay, but you aren't using the mono version of godot, correct? And what version of godot are you using? The above repo https://github.com/Poing-Studios/Godot-AdMob-Android-iOS has pre-made templates you can use. Check it out.

Tobi-La commented 3 years ago

Okay, but you aren't using the mono version of godot, correct? And what version of godot are you using? The above repo https://github.com/Poing-Studios/Godot-AdMob-Android-iOS has pre-made templates you can use. Check it out.

I was using the "normal" version. But it seems I found my mistake: I was copying the GoogleMobileAds.xcframework instead of the GoogleMobileAds.framework. Seems they change that in the newest admob version, in the video tutorial he just copies all extracted files into the module folder. Thanks anyways for your help!