react-native-admob-native-ads
react-native-admob-native-ads copied to clipboard
M1 build fails
Building latest master or 0.5.0 to iOS Simulator fails:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_GADFBNetworkExtras", referenced from:
objc-class-ref in libreact-native-admob-native-ads.a(RNGADNativeView.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Came across this as well, try running this in your ios directory:
pod deintegrate
arch -x86_64 pod install --repo-update
Then try building for iOS again
Building latest master or 0.5.0 to iOS Simulator fails:
Undefined symbols for architecture arm64: "_OBJC_CLASS_$_GADFBNetworkExtras", referenced from: objc-class-ref in libreact-native-admob-native-ads.a(RNGADNativeView.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
@rogerkerse have you found the solution?
Undefined symbols for architecture arm64: "_OBJC_CLASS_$_GADFBNetworkExtras", referenced from: objc-class-ref in libreact-native-admob-native-ads.a(RNGADNativeView.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Getting this error no matter what I do. Please suggest any solution for this.
I have confirmed that the error only comes when you run on simulator. In real device there is no problem. @ammarahm-ed can you please help?
Please give some solution. I am unable to run apps on simulator and its very difficult to develop with real device. Please.
Its been a month I am finding the sollution for this but I am unable to build on simulator. I have lots of dependency on this library as I am using it on more than 20 apps. Please @ammarahm-ed @rogerkerse If you have any suggestion or solution please let me know. I am using Xcode 13.3.1 and tried the latest react-native version also but nothing works.
Check my gist, I might help https://gist.github.com/ildfreelancer/c161628115e590749599ceb6e623125c
Check my gist, I might help https://gist.github.com/ildfreelancer/c161628115e590749599ceb6e623125c
Tried this. But I am also using @react-native-admob/admob for interstitial ads. If I apply this workaround it says RNAdmob.modulemap is not found and the build fails immediately.
Is there any solution for this?
I don't have a M1 to test and fix this.
Are you using facebook mediation @haresh4d? Check docs for the installation guide and add facebook mediation sdk in podfile. then try again.
@haresh4d If you have AnyDesk, we can connect there and I can debug this probably on your PC.
@ammarahm-ed Yes, I have AnyDesk let me know whenever its suitable to you.
@ammarahm-ed any progress? Can you please debug on my M1?
Finally, I was able to run my app on Simulator by not using @react-native-admob/admob
and replacing it with react-native-google-mobile-ads
6.9.0.1
after donwgrading I have these issues
Showing Recent Messages Undefined symbol: OBJC_CLASS$_GADAdLoader
Showing Recent Messages Undefined symbol: OBJC_CLASS$_GADMultipleAdsAdLoaderOptions
Showing Recent Messages Undefined symbol: OBJC_METACLASS$_GADNativeAdView
Showing Recent Messages Undefined symbol: OBJC_CLASS$_GADCustomEventExtras
Showing Recent Messages Undefined symbol: _GADSimulatorID
Showing Recent Messages Undefined symbol: OBJC_CLASS$_GADCustomEventExtras
Showing Recent Messages Undefined symbol: OBJC_CLASS$_GADNativeAdMediaAdLoaderOptions
Showing Recent Messages Undefined symbol: OBJC_CLASS$_GADNativeAdViewAdOptions