Application crashes on launch for the first time when `FIRApp.configure ()` is called

I have a strange error with a new Firebase that I cannot understand. I have included Firebase Analytics and Crashlog, and I call FIRApp.configure() in didFinishLaunchingWithOptions , as Docs say.

But when I run the application for the first time, it sometimes crashes without giving details about why. I can only provide this (always the same) crashlog from the emergency section. Does anyone face similar issues with the new Firebase?

 ___ZN3ggl10GLRenderer5frameEPNS_12RenderTargetEPNS_11RenderQueueE_block_invoke_2 + 4103720 ___ZN3ggl10GLRenderer5frameEPNS_12RenderTargetEPNS_11RenderQueueE_block_invoke_2 + 4103704 ___ZN3ggl10GLRenderer5frameEPNS_12RenderTargetEPNS_11RenderQueueE_block_invoke + 4102664 _dispatch_call_block_and_release + 5304 _dispatch_client_callout + 5240 _dispatch_queue_drain + 54460 _dispatch_queue_invoke + 20348 _dispatch_root_queue_drain + 62348 _dispatch_worker_thread + 71984 _pthread_body + 15140 _pthread_start + 14984 thread_start + 4132 

Update

Now I realized that this failure only occurs if the view loaded with the fist includes MKMapView. Changing the initial view to, for example, a UITableView fixes the crash. I will contact firebase support.

+5
source share
3 answers

Move the GoogleService-Info.plist file that you just uploaded to the root of your Xcode project and add it for all purposes .

+2
source

Can you send a crash report with characters to make it easier to debug? According to the post, there may be an error not related to Firebase. Can you try this and let us know if it solves the problems?

In Xcode, go to Product> Scheme> Edit Scheme ...

Select the Launch tab on the left. Select the Options tab on Up.

Change “GPU Frame Capture” from “Automatically Enabled” or “OpenGL ES” to “Metal” or “Disabled”.

This disables OpenGL ES frame capture, which is not very convenient, but allows you to continue debugging your builds.

0
source

Try to implement init, it works fast:

  - (id) init { self = [super init]; if(self){ [FIRApp configure]; }} 
-1
source

All Articles