1. 友盟 http://www.umeng.com/
但现在还只支持oc ,不支持swift ,如果是swift代码有问题,捕捉不到问题
MobClick.setCrashReportEnabled(true)
MobClick.setLogEnabled(true)
let version:String = NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleShortVersionString") as! String
MobClick.setAppVersion(version)
MobClick.startWithAppkey("", reportPolicy: REALTIME, channelId: nil)
2. NSSetUncaughtExceptionHandler 也是不支持swift
MyUncaughtExceptionHandler.h :