New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ios] Unexpectedly found nil while implicitly unwrapping an Optional value #56
Comments
I'm having the same issue. Edit for FIX UPDATE: I'm not too sure of the cause, but somehow headlineView and some of the other views are nulling out. It may have something to do with the fact that even though I've fixed the original issue, ads are still not loading. If my assumption is correct, I'll further update my reply. Here's how you fix the "Unexpectedly found nil.." issue: In that same file, UnifiedAdLayout.swift, on lines 24-28, you'll see each of the five lines have the "weak" property included. Remove that. I.e.:
becomes
Fixed! |
@kevintesar Can you load ads? Maybe there is a mistake on configurations. |
just move Bundle.main.loadNibNamed part to init. then fixed this issue. originalinit(frame: CGRect, viewId: Int64, args: [String: Any], messeneger: FlutterBinaryMessenger) {
fixedinit(frame: CGRect, viewId: Int64, args: [String: Any], messeneger: FlutterBinaryMessenger) {
|
This error caused to app crash running on both emulator and real ios device with internet connection.
App doesn’t crash without internet. It happens after ad request.
nativeAd object isn’t nil.
What was happened?
The text was updated successfully, but these errors were encountered: