2017-06-21 20 views
-2

崩溃的问题,我所面临的崩溃问题在我们的应用中无处不在,我没有找到任何解决方案,可以建议我如何解决死机问题,它随机崩溃在整个应用程序。你如何找到应用

Terminating app due to uncaught exception 'NSGenericException', reason: '* Collection was mutated while being enumerated.' * First throw call stack: (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: terminating with uncaught exception of type 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

请添加一些代码 –

+0

navView = [[UIView的页头] 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 *错误; GMSMapStyle * style = [GMSMapStyle styleWithContentsOfFileURL:styleUrl error:&error]; [self.view addSubview:mapView]; –

+0

@matloob它发生的整个应用程序我没有使用任何额外的代码。 –

回答

-1

了解随机崩溃,您必须实施火力地堡碰撞分析。您可以通过Firebase控制台查看所有细节的崩溃问题。

请参考下面的链接: -

https://firebase.google.com/docs/crash/

相关问题