iOS app crash on launch using XCode debugger, runs fine without debugger -
when running app on device (iphone), crashes @ startup without error messages. if device not connected xcode (not in debug mode), open app, runs fine.
same code runs perfect on simulator.
never seen before, guess went wrong in code signing setting or lldb debugger, can't work out.
i cannot run on real device debug, idea? stop here:
int main(int argc, char * argv[]) { @autoreleasepool { // stop here: return uiapplicationmain(argc, argv, nil, nsstringfromclass([appdelegate class])); } }
==== 2015/6/19 edited ====
thanks jim ingham give clear explanation. before, set xcode catch exceptions this:
this convenient when development. breakpoint exception include both c++ , obj-c type. exclude catching c++ breakpoints, can solve problem:
sometimes when debug real device, new version of xcode stops prices @ beginning described in question :
int main(int argc, char * argv[]) { @autoreleasepool { // stop here: return uiapplicationmain(argc, argv, nil, nsstringfromclass([appdelegate class])); } }
but not real crash (it security staff - guess ), , need click on triangle button go further in debug mode.
yes know there no breakpoint, anyway.
Comments
Post a Comment