This is one of the possible reasons. There is an IBOutlet object that is not initialized, and the message is called on nil. The stack trace may look like this:
#0 0x90a594c7 in objc_msgSend
#1 0xbffff7b8 in ??
#2 0x932899d8 in loadNib
#3 0x932893d9 in +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:]
#4 0x9328903a in +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:]
#5 0x93288f7c in +[NSBundle(NSNibLoading) loadNibNamed:owner:]
#6 0x93288cc3 in NSApplicationMain
#7 0x00009f80 in main at main.mm:17
Since stack tracing does not help, you have to go through the code to find the error. If for some reason you cannot set breakpoints at an early stage of execution, try inserting some Debugger (); calls to be split into a debugger.
source
share