How do I debug a Corona "Build for XCode Simulator" app in XCode?

I’m a bit confused/lost as to how to get my Corona app into XCode.

If I use “Corona -> File -> Build -> iOS -> Build for: XCode Simulator”, Corona gives me a large app and then automatically opens the app in XCode’s iOS Simulator, where I can run it. However I have no access to Corona’s print() statement output, or any debug info.

I want to open the app in the XCode IDE proper, where I can see what XCode has to say about it, or at the very least see the output of my Corona print() statements.

Basically I am testing the Corona native.newVideo() feature. This feature doesn’t work in the Corona Simulator ("WARNING: Native video objects are not supported in the simulator. Please build for device.
"), so I need to go to the XCode iOS Simulator, or the device itself. My video doesn’t seem to work and as I have no access to any print/debug statements, I have no idea why the video does not work.

Is there a way to create a new XCode project and add or import a pre-compiled app, such as that that Corona generates?

I’m new to XCode and Corona.

Stephen.
[import]uid: 133169 topic_id: 28812 reply_id: 328812[/import]

Sorry, this is still a painful hole in functionality. All I can suggest right now is workarounds such as

  • write out messages to the screen (e.g. newText) so you can see them
  • write out your own log files to disk so you can read them later
  • write out messages to a socket to a server so you can read them there

I think there used to be some techniques to getting Xcode to launch a binary for you and you would see the messages, but Xcode keeps changing things so I don’t know if that works anymore.

[import]uid: 7563 topic_id: 28812 reply_id: 116120[/import]

Thanks.

I discovered (after I posted) that if I set the Corona io buffer to 0, then my print() messages appear in the Mac Console window. It’s a help, but I’d also like to see Corona runtime error or warning messages too.

Do you know if there’s a way to send Corona runtime messages to a log file? That way, with the log file and the console messages, I would have everything I need…I think.

S.
[import]uid: 133169 topic_id: 28812 reply_id: 116198[/import]