kloder-games / godot-admob

Module Admob for Godot engine
MIT License
362 stars 62 forks source link

Error compiling for ios GoogleMobileAds/GADBannerView.h' file not found #127

Closed cemeai closed 4 years ago

cemeai commented 4 years ago

OS target (Android/iOS): IOS

Godot version: 3.1.2

I am tryin to compile the engine for iphone I keep getting this error

In file included from modules/admob/ios/src/AdmobBanner.mm:1:
modules/admob/ios/src/AdmobBanner.h:1:9:{1:9-1:42}: fatal error: 'GoogleMobileAds/GADBannerView.h' file not found [1]
 #import <GoogleMobileAds/GADBannerView.h>

using the command scons p=iphone tools=no target=release arch=arm

the config.py has this

env.Append(FRAMEWORKPATH=['#modules/admob/ios/lib/'])
        env.Append(CPPPATH=['#core'])
        env.Append(LINKFLAGS=['-ObjC', '-framework','AdSupport', '-framework','CoreTelephony', '-framework','EventKit', '-framework','EventKitUI', '-framework','MessageUI', '-framework','StoreKit', '-framework','SafariServices', '-framework','CoreBluetooth', '-framework','AssetsLibrary', '-framework','CoreData', '-framework','CoreLocation', '-framework','CoreText', '-framework','ImageIO', '-framework', 'GLKit', '-framework','CoreVideo', '-framework', 'CFNetwork', '-framework', 'MobileCoreServices', '-framework', 'GoogleMobileAds'])

I added all the frameworks to the ios/lib forlder I am not sure what im missing