react-native-admob icon indicating copy to clipboard operation
react-native-admob copied to clipboard

Build error in IOS - Property 'testDevices' not found on object of type 'GADRequest *'

Open losheredos opened this issue 4 years ago • 10 comments

I get this error

Showing Recent Errors Only /Users/berke/Desktop/projeler/aea-react-v3/node_modules/react-native-admob/ios/RNGADBannerView.m:60:13: Property 'testDevices' not found on object of type 'GADRequest *'

My xCode version: 11.3.1

what can I do? I cleaned pods, updated etc. but didnt help.

losheredos avatar Feb 08 '21 19:02 losheredos

Thanks to flutter community, found it there.

Adding pod 'Google-Mobile-Ads-SDK', '~> 7.69.0' then pod install solved the issue

losheredos avatar Feb 09 '21 08:02 losheredos

Adding pod 'Google-Mobile-Ads-SDK', '~> 7.69.0' to podfile is creating problem with the library react-native-admob-native-ads because that requires the higher version. is there any solution so that both works together?

haresh4d avatar Apr 09 '21 08:04 haresh4d

@haresh4d Did you figure out anything?

holgersindbaek avatar Apr 21 '21 09:04 holgersindbaek

@haresh4d Did you figure out anything?

Just use 0.3.9 version of react-native-admob-native-ads also put following line in podfile

pod 'Google-Mobile-Ads-SDK', '~> 7.69.0'

For me it worked

haresh4d avatar Apr 21 '21 11:04 haresh4d

When is @sbugert going to update the library ?

ShivamJoker avatar Apr 29 '21 17:04 ShivamJoker

I have moved to flutter because of such issues with react native.

haresh4d avatar Apr 29 '21 18:04 haresh4d

I have moved to flutter because of such issues with react native.

And flutter has no issues ? Right

ShivamJoker avatar Apr 29 '21 18:04 ShivamJoker

It has issues but everything is so nicely documented so you dont waste time in solving build errors due to dependency.

haresh4d avatar Apr 29 '21 18:04 haresh4d

Is anybody able to use admob with Google Ads SDK 8.0 or higher..I am getting this error when I try to go above 7.69...is it possible to do so ?

bethea28 avatar Jun 02 '21 03:06 bethea28

this is a way to use sdk 8.0 https://github.com/izetmolla/react-native-admob-next/pull/1

Donhv avatar Jul 01 '21 07:07 Donhv