Module 'GoogleMobileAds' not found in iOS

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

    I just add "use_frameworks!" in the podfile, update pod and it works. This problem appeared when I updated my OS to El Captain (10.11.15) and XCode to 8 version. My podfile now:

        target 'My Target' do
           use_frameworks!
           pod 'MagicalRecord'
           pod 'AFNetworking'
           pod 'Firebase'
           pod 'Firebase/Core'
           pod 'Firebase/AdMob'
        end
    

提交回复
热议问题