Oscar Peli
Oscar Peli

Reputation: 1128

Attach XCode Debugger

I'm developing an iPhone app that needs a web login. As usual I call

[[UIApplication sharedApplication] openURL:loginURL];

This close the app and calls the login page inside Safari. Once logged, the app is opened once again using a callback address and the iPhone URL registration feature.

The question here is:

Since the app is closed when I call Safari, the debug stops. How can I continue the debug?

Thanks

Upvotes: 2

Views: 1217

Answers (1)

Stephen Darlington
Stephen Darlington

Reputation: 52565

You can, however, get XCode to connect to an application the next time it's launched. You bring up the inspector on your executable and check the "Wait for next launch/push notification" box. This is explained in more detail here.

The other alternative would be to use a UIWebView inside your app rather than switching to Safari.

Upvotes: 2

Related Questions