我正在我们的应用程序中遇到崩溃问题我无法找到任何解决方案你能建议我如何修复崩溃问题,它会在整个应用程序中随机崩溃。
由于未捕获的异常终止应用程序' NSGenericException', 原因:' *收藏品发生了变异 被列举。' * 第一次抛出调用堆栈: (0x18ff7efe0 0x18e9e0538 0x18ff7ea30 0x19639c4d4 0x19639c738 0x19639c8c8 0x1004511e0 0x100450b10 0x10063aee8 0x1006336a8 0x1005b0b04 0x1005929a0 0x1005ed8b4 0x1017284fc 0x1931905dc 0x19319048c 0x1901ebb9c 0x18ff15960 0x18ff2dae4 0x18ff2d284 0x18ff2ad98 0x18fe5ada4 0x1918c4074 0x196115058 0x1001886dc 0x18ee6959c) libc ++ abi.dylib:以NSException类型的未捕获异常终止
navView=[[UIView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width,70)];
[self.view addSubview:navView];
[mapView clear];
mapView = [GMSMapView mapWithFrame:CGRectMake(0,70, self.view.frame.size.width,-70) camera:camera];
mapView.delegate = self;
NSBundle *mainBundle = [NSBundle mainBundle];
NSURL *styleUrl = [mainBundle URLForResource:@"customMapsJson" withExtension:@"json"];
NSError *error; GMSMapStyle *style = [GMSMapStyle styleWithContentsOfFileURL:styleUrl error:&error];
[self.view addSubview:mapView];
答案 0 :(得分:-1)
要了解随机崩溃,您必须实施Firebase崩溃分析。您可以通过Firebase控制台检查崩溃问题以及所有详细信息。
请参阅以下链接: -