You can no longer debug output in 2.0 by launching your app from SSH. So how do you get those NSLog outputs? The answer is to enable the syslog and then you can use tail -f /var/log/syslog to see all the output. Here is how:
- edit
/System/Library/LaunchDaemons/com.apple.syslogd.plist - find the
<string>/usr/…/syslogd</string>line - below that add:
<string>-bsd_out</string>
<string>1</string> - Type:
echo '*.* /var/log/syslog' > /etc/syslog.conf(open /etc/syslog.conf and make sure that you have *.* /var/log/syslog without any extra characters) - Type:
launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist - Type:
launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist
And now you have an awesome /var/log/syslog that contains NSLogs (and I think stderr) from your application.
Remember, to see the output open SSH and type: tail -f /var/log/syslog to see all the output.
Source of these info: TheBigBoss website, and originally from Saurik.
Here’s an output example… frack!
Mar 23 09:56:37 iPhosk com.apple.locationd[198]: 259491397.100,static void CLFileUpdate::onDownloaded(CLFileDownload*, bool, void*): could not download from https://iphone-services.apple.com/clbl/unauthorizedApps to /var/root/Library/Caches/locationd/clients-b.plist.temp





ooh, thanks for the tip, iphone is giving me problems and this will make a big difference i think. nice post.
Nice tips about iphone ,it help me a lot~
Hello!
I see know some tips for iPhone so i have one question…
Do you maybe know if it is possible to change the default sound for new email in iPhone 4?
This is sure a big help, just like @Jinco have said. I just bought an iphone and I’m still not used with it, this tips surely gonna help me
@sesalnik
I was trying to figure out the same thing. Did you end up finding the answer?
doesn’t work for me. what do i do wrong. anyone?
Yeah finally real solution of this annoying problem. Thanks for posting!