2017-06-21 12 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のは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)カメラ:カメラ]; 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クラッシュAnalyticsを実装している必要があります。あなたは、Firebaseコンソール上のすべての詳細に関する問題をクラッシュさせることができます。

リンクの下に参照してください: -

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

関連する問題