x


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?

more ▼

asked Jul 29 '10 at 10:25 PM

DaveA gravatar image

DaveA
26.8k 153 171 257

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Jul 29 '10 at 11:14 PM

Murcho gravatar image

Murcho
2.7k 12 23 53

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)

  1. you just run out of memory (console will show memory warnings)
Jul 29 '10 at 11:58 PM DaveA

@James Murchison, 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.

Nov 22 '12 at 08:51 AM zenubis

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.

Apr 04 at 02:05 AM supernat
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2013
x249
x249
x71

asked: Jul 29 '10 at 10:25 PM

Seen: 3677 times

Last Updated: Apr 04 at 02:05 AM