Module 'GoogleMobileAds' not found in iOS

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

    Here is the solution that worked for me:

    Don't Do this

    Instead of this drag the GoogleMobileAds.framework to your project and add all the other frameworks mentioned here and while drag and drop check copy items if needed.

    0 讨论(0)
  • 2020-12-09 08:35

    The actual issue here is that in the build settings of your app, you are missing the setting:

    Framework Search Paths

    Either edit your project.pbxproj so that BuildSettings includes something like:

    FRAMEWORK_SEARCH_PATHS = "/Users/bram/src/GoogleMobileAdsSdkiOS-7.16.0/";
    

    Or use Xcode's UI to change the build settings like this:

    0 讨论(0)
提交回复
热议问题