Module 'GoogleMobileAds' not found in iOS

后端 未结 20 2364
感动是毒
感动是毒 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:09

    I got the same problem. Here is what I did. Hope it helps someone.

    1. Delete GoogleMobileAds.framework from your project (or store it on another folder).
    2. Go to Build Phases, Link Binary with Libraries. Click the + sign for the Link Binary with Libraries section and click Add Other.... Navigate to where you've stored GoogleMobileAds.framework > Versions > A > GoogleMobileAds and open it.

    That perfectly fixed the issue for me.

提交回复
热议问题