现在市面上有很多三方库框架做错误搜集处理,Bugly我个人觉得使用最方便.
在下面这个方法中添加即可
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
//一定放在第一句
[[CrashReporter sharedInstance] installWithAppId:@“此处输入你的AppId”];
return YES;
}