rash常規(guī)跟蹤方法及Bugly集成運(yùn)用

當(dāng)app出現(xiàn)崩潰, 研發(fā)階段一般可以通過(guò)以下方式來(lái)跟蹤crash信息

#1.模擬器運(yùn)行, 查看xcode錯(cuò)誤日志

#2.真機(jī)調(diào)試, 查看xcode錯(cuò)誤日志

#3.真機(jī)運(yùn)行, 查看device系統(tǒng)日志

 

下面舉例說(shuō)明, 先寫(xiě)一段會(huì)Crash的代碼crashdemo:

復(fù)制代碼
- (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]);
}
復(fù)制代碼

網(wǎng)友評(píng)論