My app is crashing, but there is no additional information as to why. When I go to a certain view controller, it requires loading a custom UIView
from a nib. The line to load the nib is where I am getting the crash.
I get an error message of
Thread 1: EXC_BAD_ACCESS (code=2, address=0x16b547db8)
but there is no output to the console or further information.
Scheme is set to debug. I've tried intentionally making an error in the spelling of the nib name, and that gives me all of the necessary debug information in the console.
The line causing the crash is:
let v = Bundle.main.loadNibNamed("HelpPageSection", owner: self, options: nil)![0] as! HelpPageSection