开发者

Cocoa Touch best practice for capturing/logging/diagnosing crashes

As I get closer to releasing my first public iPhone app I'm concerned about catching crashes in the field. I'm curious to hear how others have gone about this.

I'm not sure what's possible outside of the debugger. Is all lost with an EXC_BAD_ACCESS or can I still catch it and get something useful in开发者_运维百科to a log? Is the program main() the spot to put a @try/@catch?


Apple will collect all crashes for you, and if the user allows apple to gather the reports from his/her phone, you can see them inside iTunes Connect.


This is the kind of information I was looking for. I never found it with a search but saw it linked from another blog recently.

http://cocoawithlove.com/2010/05/handling-unhandled-exceptions-and.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜