rash常規(guī)跟蹤方法及Bugly集成運用
當(dāng)app出現(xiàn)崩潰, 研發(fā)階段一般可以通過以下方式來跟蹤crash信息
#1.模擬器運行, 查看xcode錯誤日志
#2.真機調(diào)試, 查看xcode錯誤日志
#3.真機運行, 查看device系統(tǒng)日志
下面舉例說明, 先寫一段會Crash的代碼crashdemo:
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [self performSelector:@selector(print) withObject:nil afterDelay:5]; } - (void)print { NSArray *array = @[]; NSLog(@"%@", array[1]); }