Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Module 'GoogleMobileAds' not found in iOS

Tags:

ios

admob

I updated Google AdMob SDK to 7.1.0 using Pods.

So in my appDelegate.m, I am trying to add this line

@import GoogleMobileAds;

But I get error saying Module 'GoogleMobileAds' not found.

This issue is also present in Interstial Ad example by google on gitHub.

Regards Ranjit

like image 389
Ranjit Avatar asked Apr 07 '15 06:04

Ranjit


2 Answers

Make sure to check "copy item if needed" box when copy GoogleMobileAds.framework to your App.

enter image description here

In my case, I had removed framework and again added that framework and checked that box and issue disappeared.

like image 102
M Swapnil Avatar answered Nov 19 '22 01:11

M Swapnil


I ran into this problem when updating my pods and using Firebase. Unfortunately, none of the answers here helped, so I figured I would post what did work for me.

I found a great thread that helped me here. Basically doing the following worked:

  • Delete my pods - rm -rf Pods
  • Reinstall my pods - pod install --repo-update

Hope this helps someone because this troubled me for a while.

like image 19
jason z Avatar answered Nov 19 '22 01:11

jason z