IOs AdMob and XCode 7 beta: Module not found?

Hey there,

I have build my project with Unity 5.1.0.f.3 and use the XCode 7 beta 7A120f version to run my app an my phone. Now the problem is, that I added the Google Mobile Ads Unity Plugin v2.2 and the iOS Google Mobile Ads SDK v7 and set it up.

When I hit compile, XCode throughs the error “Module ‘GoogleMobileAds’ not found”

Anyone an idea, why this won’t work?

Thank you :slight_smile:

found the solution: had to add “$(PROJECT_DIR)” without " to the Framework - , Header - and Libary search paths in the buildsettings in XCode.

1 Like

Could you go into more detail as to what you changed the framework, header and library search paths to? Seems Admob is completely broken after xcode 7

Add this → $(PROJECT_DIR) under search path in build setting to framework path , header path and library path.

I’ve have very minimal experience managing Xcode projects – could you perhaps provide screenshots? I’m having a hard time.

Thanks bunches.

Ok. I’m at the of my rope. Nothing is working. I’m using Unity 5.2.4f1, Xcode 7.2.1. I just installed the latest version of the Google Mobile Ads Plugin v3.0.1 (Release Google Mobile Ads Unity Plugin v3.0.1 · googleads/googleads-mobile-unity · GitHub) and for the life of me, I simply can’t build.

I made the settings changes, cleaned my project and tried to build but I still get the same error.

Can anyone help? Here are screen shot of my settings:

Did you get this figured out? I’m having the exact same issue as of today. It’s never happened before today.

I had trouble figuring this out too but realized I forgot to add the google mobile ads framework to Xcode in addition to adding the plugin in Unity. Make sure you see it under the “Frameworks” section in the Xcode files. Hope this helps!

1 Like

I ended up adding the framework before I saw this post. Thanks! Also, however, I’m finding that sometimes banner advertisements don’t get destroyed or hidden when .Hide or .Destroy is called, but only on iOS. I read somewhere that this issue was fixed about a year ago, but I have the most recent version of the Google Ads SDK and am still having this issue. Is anyone else?

1 Like

When importing .framework in xcode, you can check “copy if needed”, so automatically " $(PROJECT_DIR)" will be added in Framework, Header and Lybrary search paths

Having the same issue here. Where do I find this “GoogleMobAds.framework” file?

It’s not included, nor is it mentioned in the guide. I don’t know where other people are getting the framework, but I got it by simply downloading the Admob SDK for iOS: https://developers.google.com/admob/ios/download
Fingers crossed whether it works or not :eyes:

@IKCStudio Yeah I eventually downloaded that, added the ‘framework’ but still didn’t help much… Any luck on your end?

I am getting same problem, downloaded sdk but still no solution, any help ?

I had the same issue added GoogleAds Framework. Now i’m getting an error in the Xcode Console
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9814)
when the LoadAd function is called. I have doubled checked my IOS ID ca-app-pub-1219365107499960/2375676139.
Anyone solved this?

This helps, thank you.

fix the problem

Hi we just solved this issue please follow this links for more information http://www.gigadrillgames.com/2017/02/13/google-play-games-plugin-for-unity3d-possible-fixed-for-xcode-project/