I encountered the same crash when loading my MainMenu.nib and I have found the reason of the crash.
I had several shared objects in the MainMenu.nib, such as NSDocumentController and others.
These shared objects "init" are called twice. The first is from my own code and the second is from [NSClassSwapper initWithCoder].
In the first call, [super init] is called but in second call [super init] is not called because it is the shared object.
The crash occurs when these shared object's second "init" call.
To work around this problem, I modified my code not to call the shared object "init" twice.
I hope this helps!
Satoshi Matsumoto
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: