How Can I Get A Crash report From a Jailbroken App Running In My Device?
My Application is for jailbroken devices. It compiles and works fine in general in the iOS simulator but it crashes instantly the moment I open it in my device. Again, it's a Jailbroken app so I can't get crash logs the same way registered developers can. Is there any way I can get a crashlog for my app even though I am not a registered iOS developer? This is driving me nuts because I have been working on this for 3 months now and I don't 开发者_JAVA百科want to stop because of something like this.
Oh, if it matters, I am "Fake code signing" using the method described here, but only this specific app is crashing. I tested by making a dummy app that simply shows a label and it's not crashing at all.
Install OpenSSH in Cydia, then ssh into your device and navigate to /var/mobile/Library/Logs/CrashReporter
. You will find all of the crash logs there.
Another way to diagnose the problem would be to install the syslogd enabler from Cydia. This will enable the syslog in /var/log/syslog. You can monitor this just like you would monitor Console is Mac OS X. Be sure to uninstall the syslogd enabler when you're not using it as the syslog can get pretty big after a while. You can also install the syslogd toggle for SBSettings to easily enable and disable syslogd.
@edc1591's answer is still correct, but just for the sake of completeness I would like to add another answer for those seeking additional information. There is an package in Cydia, CrashReporter, which offers an easy way to access the crash logs on the device (they can be sent via email from an app). Further advantages of using it include:
- The crash logs are already symbolicated
- A syslog is also included (assuming the package was installed prior to the crash)
It is very useful for collecting crash reports for tweaks from users who may not want to install or use OpenSSH. There is a very good explanation of how to use the app here: http://tweakcrashed.com/
The project is open-source.
精彩评论