1、调用堆栈
2、如果是用真机或线上的话,可以用bugly或其它网上收集bug工具
1、打开bugly网址,https://bugly.qq.com/v2/product/apps/900003521?pid=2
2、登录后创建一个应用。
3、下载iOSsdk,集成到项目中,然后在APPDelegate程序启动时,加载bugly方法传入创建应用获取的APPKey.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[Bugly startWithAppId:@"此处替换为你的AppId"];
return YES;
}
4、用真机测试(反复测试),然后在在bugly网站上看崩溃日志