superwall / Superwall-iOS

Remotely configure every aspect of your paywall and double your revenue.
https://superwall.com
MIT License
86 stars 22 forks source link

[BUG] Crash when showing deep link preview #138

Closed finnvoor closed 1 year ago

finnvoor commented 1 year ago

New issue checklist

General information

Describe the bug

When scanning the paywall preview QR code the app crashes when presenting DebugViewController.

Crash: SuperwallKit/PaywallViewController.swift:636: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value

paywallStateSubject is nil because set(request: PresentationRequest, paywallStatePublisher: PassthroughSubject<PaywallState, Never>) is never called on PaywallViewController when showing in the debugger.

yusuftor commented 1 year ago

Is this definitely happening in rc7? I believe I fixed this

finnvoor commented 1 year ago

I reset package caches, made sure Xcode said it was using rc7, and double checked before opening this ticket, but just went and cleared all derived data + caches and tried again and it seems to be working now, so I guess I just had rc6 cached somewhere… sorry!