I have a multithreaded OS X application that uses a mixture of C++, Objective-C, and Swift.
When my application shuts down, I see this in the Xcode debugger window:
libc++abi.dylib: Pure virtual function called!
I know that this error is typically caused by a call to a virtual function in a C++ class constructor or destructor.
Is there an easy way to find where it is? By "Easy", I mean "not analyzing call trees for every line of every constructor and destructor of every class that has a virtual function".
I don't see a stack trace. The debugger does not halt the program when this message is printed. A message logged from my app delegate's applicationDidTerminate
method precedes this message.
I tried setting a breakpoint on "All exceptions" but unfortunately that breakpoint is hit often by code that uses lots of exceptions. Is there some other symbol where I can put a breakpoint?