iOS crash log catch, debug info.. Catch and send v

2019-01-03 04:14发布

Recently we came across a situation where we wanted to see the debug info from the app which a user has on his device. So, what I am looking for is a way to find the log on the device, paste it as inline text on a mail and allow the user to send it..

Any ideas? Here are the questions again.. 1)Find a debug log on the device 2)open the file and attach the contents of the file as inline text in to the mail. 3)Allow the user to email it the next time app launches..

Thanks,

9条回答
趁早两清
2楼-- · 2019-01-03 04:41

See Ryan's answer in How to view NSLog statement from iphone .app file for a free utility provided by Apple.

But this is still no convenient solution. If you can afford a new build, you should change your logging within the app. Jano has some very good ideas on this in How to NSLog into a file. Especially option 2 should do without too much effort.

In general I would recommend hiding native logging facilities behind a facade or similar design just at the beginning of the project regardless what programming language is used.

查看更多
来,给爷笑一个
3楼-- · 2019-01-03 04:49

BugSense provides crash reporting services for iOS. Apart from providing a fully symbolicated stack trace, BugSense provides analytics for your crashes, across all your applications.

I think it's better than email, because when your app becomes popular you will need to manage all these emails manually, while BugSense does this automatically. However, BugSense is also open-source, so you can modify its internals any way you want and add any additional functionality.

In addition to that, you get us to work for you for free: If you have an idea about a cool new feature that you want us to have, we'll do it -provided we think it's cool, too.

Disclaimer: I write the code for BugSense-iOS.framework.

查看更多
贪生不怕死
4楼-- · 2019-01-03 04:51

If you use the TestFlight with their SDK this is automated. It's a really nice system. For test builds only, however.

https://testflightapp.com/sdk/

查看更多
登录 后发表回答