sbugert / react-native-admob

A react-native component for Google AdMob banners
BSD 2-Clause "Simplified" License
1.13k stars 532 forks source link

use of undeclared identifier 'GADMobileAds' iOS #545

Closed Miyaguisan closed 3 years ago

Miyaguisan commented 3 years ago

Hi,

I have followed all the steps and set up everything and the app works just fine. The problem comes when I want to ARCHIVE for distribution. The following error shows up:

Use of undeclared identifier 'GADMobileAds'

Again... compiling and running the app works fine, but I just can't archive for distribution. ¿What's up with that?

tforbus commented 3 years ago

@Miyaguisan Did you figure out how to resolve this? I'm seeing this same error.

tforbus commented 3 years ago

I managed to get this working by moving "@import GoogleMobileAds;" into AppDelegate.h, if anyone else stumbles across this through Google as I did.