On Aug 30, 2011, at 11:06 AM, Manfred Schwind wrote: > is there a file path to the console output - visible in Xcode, e.g. when > calling NSLog, I think it's stderr - on the iPhone? > I tried "/dev/stderr" or "/dev/fd/2" (and several other paths) but they do > not work and if I get the directory contents of "/dev" they really don't > exist on iOS.
Wow, that is rather weird. You might ask on the darwin-userlevel mailing list here, which is all about that level of stuff. > Background: I have a third party library (that I am not allowed to change) > that logs to a file in Debug mode. I want to see this log output directly in > the Xcode console, because transferring log files from the iPhone is too > complicated. The library provides an API to set the file path (unfortunately > not a file handle or something else). As a workaround you could run a background thread that opens that log file, waits for its EOF to increase, and then echoes the appended data to stderr. (Basically like ‘tail -n’.) —Jens_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com