Xcode terminal

Happy new year everyone.

I recently posted a problem with SQL where my data saved on the corona sim but not on the device. One person came back to suggest using the Xcode simulator and seeing what any messages are. Embarrassingly I had never used the Xcode sim and have now spent ages trying to get the print statements showing in the console. I have just seen a FAQ document on Corona from September saying that print statements don’t work for xcode simulator on ios6 and corona are working on a solution. Can someone tell me if this is solved or is there a work around. I might be having problems with an INSERT statement (not on the corona simulator but on the device). How do I find out?

Thanks [import]uid: 83824 topic_id: 34452 reply_id: 334452[/import]

If you have a device you can use the Xcode Organizer and look at the Console of the device while you’re running the app. The statements will show up as < warning > messages, but still you’ll be able to see your print statements… [import]uid: 70847 topic_id: 34452 reply_id: 136987[/import]

There was a time when iOS 6 stopped showing prints, but that was fixed and I’m pretty sure the latest stable build is fixed. Most certainly the later daily builds are good to go.

The Xcode simulator however uses the “console” app for its logs. You can launch the console app to see them.

However if you’re running it on the device, use Xcode’s Organizer and find your device in the left sidebar, click on “Console Log” to see the devices console log. From there you can watch for the print statements. If your device is not iOS 6, prints will be just fine. If your device is iOS 6 you will need a build after the late November time frame. [import]uid: 199310 topic_id: 34452 reply_id: 137031[/import]

If you have a device you can use the Xcode Organizer and look at the Console of the device while you’re running the app. The statements will show up as < warning > messages, but still you’ll be able to see your print statements… [import]uid: 70847 topic_id: 34452 reply_id: 136987[/import]

There was a time when iOS 6 stopped showing prints, but that was fixed and I’m pretty sure the latest stable build is fixed. Most certainly the later daily builds are good to go.

The Xcode simulator however uses the “console” app for its logs. You can launch the console app to see them.

However if you’re running it on the device, use Xcode’s Organizer and find your device in the left sidebar, click on “Console Log” to see the devices console log. From there you can watch for the print statements. If your device is not iOS 6, prints will be just fine. If your device is iOS 6 you will need a build after the late November time frame. [import]uid: 199310 topic_id: 34452 reply_id: 137031[/import]

I’m working with build 2013.1086 and I’m using io.output():setvbuf(‘no’) in main.lua but still can’t see any print statements in the Console Log of the device (XCode Organizer). I have iOS 6.0.1 on an iPhone 4.

Can anyone help me with why I can’t see the print statements in the console?

Thank you!

Daniela

The Xcode simulator doesn’t write to the device login in the Xcode organizer.  It uses the OS’s Console app.  Click on the spotlight magnifying glass at the top left of your mac, and type in console and run the app that shows up.  The Xcode Simulator’s output will be there.

I’m working with build 2013.1086 and I’m using io.output():setvbuf(‘no’) in main.lua but still can’t see any print statements in the Console Log of the device (XCode Organizer). I have iOS 6.0.1 on an iPhone 4.

Can anyone help me with why I can’t see the print statements in the console?

Thank you!

Daniela

The Xcode simulator doesn’t write to the device login in the Xcode organizer.  It uses the OS’s Console app.  Click on the spotlight magnifying glass at the top left of your mac, and type in console and run the app that shows up.  The Xcode Simulator’s output will be there.