Failed to create Objective-C module 'GoogleMobileAds'

I liked this video .

I tried to clean, but did not decide. I added GoogleMobileAds.framework

Errors " ..ViewController.swift:12:8: Could not build Objective-C module 'GoogleMobileAds'' "

line 12: import GoogleMobileAds

+7
source share
7 answers

I ran into the same problem when reading a tutorial from Google ( https://developers.google.com/admob/ios/quick-start ).

I also tried @ Luda's solution, adding Manual and succeeding. After that, I decide to try again with CocoaPods using the Bridging-Header (similar to adding the Analytics Lib):

+5
source

What worked for me was manually setting the GoogleMobileAds framework. https://developers.google.com/mobile-ads-sdk/docs/dfp/ios/quick-start#manually_using_the_sdk_download

+3
source

After searching and searching through Stackoverflow and nothing helped, I finally just deleted the entire GoogleMobileAds folder from my project (and not just the link, I deleted the actual folder in the pod folder). I also deleted all the links to GoogleMobileAds and ran pod install , and he finally fixed it.

+1
source

Go to build setup and change the "Yes"

0
source

Modules introduced in iOS 6.0.

If you want to use the GoogleMobileAds module, you must change the minimum application deployment target to 6.0 at least.

See the link for more details.

0
source

I know this is old, but since I figured out my problem and it is not listed here, I thought I would share it. I had the same error, and I tried everything and nothing worked. I finally read here and the last comment that the poster talks about downloading a file on Windows, and then moving it to a Mac caused it problems.

Good, why I was wrong. As soon as I downloaded the file from Mac BAM! he worked.

0
source

This is an old thread, but I will add my solution here because it happened to me today.

Change your deployment target to at least 6.0

-1
source

Source: https://habr.com/ru/post/983008/


All Articles