Crash when initializing a UITableViewController from IB
gabriellanata opened this issue · 2 comments
gabriellanata commented
Platform
iOS
Environment
Production, Develop, TestFlight
Installed
Manually
Version
8.26.0
Xcode Version
15.4
Did it work on previous versions?
Unknown, but probably not
Steps to Reproduce
- Create a UITableViewController subclass that uses a XIB file
- Add a view to the xib file and connect it using an @IBOutlet
- Add some code in the
viewDidLoad
method that checks if the @IBOutlet is nil or not - Ensure
enableSwizzling
andenableUIViewControllerTracing
are enabled as options in Sentry - Run the app and navigate to that screen
Expected Result
@IBOutlet is not nil and everything worked as expected
Actual Result
@IBOutlet is nil and it caused a crash if the IBOutlet uses force unwrap
Are you willing to submit a PR?
brustolin commented
Hello @gabriellanata, thanks for bringing this up.
We will provide a fix soon.
gabriellanata commented
Thanks @brustolin, verified the crash is fixed on our side after updating the library