Tw1ddle / samcodes-admob

:money_with_wings: Unofficial AdMob ads support for Haxe/OpenFL Android and iOS targets.
https://samcodes.co.uk/code/
MIT License
24 stars 5 forks source link

Crash on IOS #13

Open filipp8 opened 4 years ago

filipp8 commented 4 years ago

The app crashes immediately after initAdMob call

Called from extension.admob.AdMob.initAdMob (extension/admob/AdMob.hx line 19)
Called from ads.AdsWrapper.init (ads/AdsWrapper.hx line 47)
Called from state.play.PlayState.create (state/play/PlayState.hx line 59)
... [stacktrace continue] ...
Null Function Pointer
libc++abi.dylib: terminating with uncaught exception of type Dynamic
(lldb) 

I think I do not link the compiled lib correctly. What I do is add all the content of the ndll/iPhone dir into Xcode -> Build Phases -> Link binary With Libraries. I add all the content because I do not know what to add. Info on here https://lib.haxe.org/p/samcodes-admob/ talks about a libAdMobAds.a file that I am not able to find. I tried with haxelib 1.0.9 version and the git version. On android works fine (even though I am not able to run correctly adMob together with Chartboost).

Tw1ddle commented 3 years ago

I no longer use AdMob in my current projects, so won't be fixing this up.

For iOS it sounds like the ndlls needed rebuilding, and an updated library file libAdMobAds.a probably needs taking from the AdMob SDK itself.