Module 'GoogleMobileAds' not found Xcode 7.2.2 and unity 5.3.3

1,553 views
Skip to first unread message

Mrinmoy Bhadra

unread,
Apr 22, 2016, 5:43:09 AM4/22/16
to Google Mobile Ads SDK Developers
Getting error of module 'GoogleMobileAds' not found.
in build setting there is no option to enable module (C and objective C).
Please help...

Vu Chau (Mobile Ads SDK Team)

unread,
Apr 22, 2016, 4:57:56 PM4/22/16
to Google Mobile Ads SDK Developers
Hi Mrinmoy,

There are a couple things you could try that should rectify this issue:
  • Select the GoogleMobileAds.framework, uncheck and check the Target Membership.  Rebuild your project, and the error should go away.
  • What is your Deployment Target?  Try changing it to > 7.0 if you haven't configured that for a while.
  • Add $(PROJECT_DIR) in the search path in your build's settings.
Vu Chau
Mobile Ads SDK Team

Tkron75

unread,
May 22, 2016, 3:36:30 PM5/22/16
to Google Mobile Ads SDK Developers
Hi Vu

I have the exact same problem. I tried all three of your suggestions but am still get the message:
Module 'GoogleMobileAds' not found

Please let me know if there is anything else I can try.

I'm using SDK 7.8.1 and Xcode 7.3.1 and. Game was built in Unity3D 5.3.5

Many thanks,
Tk

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
May 23, 2016, 11:13:54 AM5/23/16
to Google Mobile Ads SDK Developers
Hi there,

For this you need to enable to following - 
  1. Set Enable Modules (C and Objective-C) to Yes in Build Settings.
  2. Add $(inherited) to Other Linker Flags in Build Settings
Note that this is for your actual project's target and not in the one that CocoaPods has generated.

Thanks,
Veer Busani
Mobile Ads SDK Team

Ridha El Bekri

unread,
Dec 2, 2016, 12:18:15 PM12/2/16
to Google Mobile Ads SDK Developers
I'm having the same issue, working on xcode 8.1 and unity 5.4.2p4. I have the necessary linker flags and the C and Objective-C modules are set to yes ! Any solutions please ?

Tushar Sondhi

unread,
Aug 23, 2017, 4:30:35 AM8/23/17
to Google Mobile Ads SDK Developers
Hi,

I am having the same issue, and i tried, Enable modules yes, enable bitcode no, added  $(inherited) to Other Linker Flags. But still unable to resolve the problem.

Regards,
Tushar Sondhi 

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Aug 23, 2017, 6:09:44 AM8/23/17
to Google Mobile Ads SDK Developers
Hi Tushar,

Seeing as this thread is more than a year old, would you be able to provide us a sample project where you can replicate the same issue on a new thread?

Regards,
Joshua Lagonera
Mobile Ads SDK Team
Reply all
Reply to author
Forward
0 new messages