I am writing an iPhone application that can be launched using a custom URL. So, I redefine -(BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
To check my changes, I have to run the application in the simulator, and then exit and launch Safari. Then I enter my own URL in the address bar to start the application.
But every time the application starts, it crashes. I'm trying to figure out why, but when I set a breakpoint and run the application from the main screen (instead of Xcode), it doesn't seem to attach.
I even tried putting NSLog instructions in the handleOpenURL message, but they do not print to the console.
I suppose I can create UIAlertViews, but ... yes, yikes. Any other way to connect to a debugging session in a simulator?
bpapa source
share