- Home /
iPhone log files?
My app runs ok using Unity Remote, but when I build and install and run on my device, it hangs when entering the level. I could probably figure out what's hanging if I could read the log file I've known and loved (the output_log.txt found in the _data folder on PC).
Is there such a thing on iPhone/iPod? If so how would I be able to read it? Or is this in XCode somewhere?
Answer by Murcho · Jul 29, 2010 at 11:14 PM
If you're launching the game from XCode with the device attached to the computer, you can bring up the console using Command + Shift + R which will have a realtime debug output. All your calls to Debug.Log() will appear here, along with any NSLog() or printf_console() commands entered in your Objective C code.
Dreamora also says:
xcode -> window -> organizer
console & crash logs
the console will show basically the same thing as the debugger console if you started it from xcode on your device so no need to go the complicated way.
though if it just crashes and otherwise works chances are there that: 1. you have a thumb library present in a unity iphone 1.6+ project (in this case it crashes right after the startup screen)
you just run out of memory (console will show memory warnings)
@James $$anonymous$$urchison, This works for me on iOS 5 but no on iOS 6. iOS 5 have logs on both xcode and device console. But iOS 6 only have it on xcode but not on device console. Can you confirm that it also works for you on iOS 6 as well? Thanks.
I'm having the same issue. I get NSLog output in the Organizer -> Device Console window, but I don't get Debug.Log, LogWarning, etc. These do show up in xcode if I run from there.
As a work around, I will just create an interface method in Obj C to call NSLog from Unity script.