When running the app on a device (iphone), it crashes at startup without any error messages. But if the device is not connected to xcode (not in debug mode), just open up the app, it runs fine.
Same code runs perfect on simulator.
Never seen this before, I guess something went wrong in code signing setting or LLDB debugger, but I can't work it out.
I just cannot run on a real device to debug, any idea? It stop here:
int main(int argc, char * argv[]) {
@autoreleasepool {
// stop here:
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
==== 2015/6/19 Edited ====
Thanks to Jim Ingham give a clear explanation. Before, I set Xcode to catch all exceptions like this:
This is convenient when development. However this breakpoint exception include both C++ and Obj-C type. By exclude catching the C++ breakpoints, we can solve this problem:
breakpoint list
shows the breakpoint 1.4 is1.4: where = libc++abi.dylib`__cxa_throw, address = 0x00000001143f9519, resolved, hit count = 1
, I don't understand why this breakpoint is automatically generated. – Shroff