Module 'GoogleMobileAds' not found in iOS

后端 未结 20 2368
感动是毒
感动是毒 2020-12-09 07:42

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

20条回答
  •  被撕碎了的回忆
    2020-12-09 08:23

    I got the same problem. here is what I did. It worked for me (Hope it helps someone).

    1. copy GoogleMobileAds.framework to somewhere and remove it from pod if you have it.
    2. Add this framework to your project manually( select "copy items if needed"). Check build phases to make sure you have it in "link binary ..." section.
    3. Clear and rebuild it again => success.

提交回复
热议问题