iOS [FIRApp configure] crash: +[NSData gtm_dataByGzippingData:]

4,544 views
Skip to first unread message

Coach Roebuck

unread,
Jul 25, 2016, 10:13:08 PM7/25/16
to Firebase Google Group

The crash is below. What am either failing to do, or am doing wrong? I have tried all of the suggestions provided at this Stackoverflow thread:


http://stackoverflow.com/questions/37625029/firebase-crash-ios-swift


I appreciate any assistance.


2016-07-25 18:56:15.257 [818:413804] Configuring the default app.

2016-07-25 18:56:15.291 [818:] <FIRAnalytics/INFO> Firebase Analytics v.3200000 started

2016-07-25 18:56:15.302 [818:] <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/Y0Yjwu)

2016-07-25 18:56:15.307 [818:413842] +[NSData gtm_dataByGzippingData:]: unrecognized selector sent to class 0x19ff79d60

2016-07-25 18:56:15.308 [818:413842] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSData gtm_dataByGzippingData:]: unrecognized selector sent to class 0x19ff79d60'

*** First throw call stack:

(0x181e9adb0 0x1814fff80 0x181ea1b44 0x181e9ebec 0x181d9cc5c 0x10029c77c 0x1002afb74 0x1002af764 0x10071da7c 0x10071da3c 0x10072a554 0x10072172c 0x10071da3c 0x10072cc9c 0x10072c364 0x181afd470 0x181afd020)

libc++abi.dylib: terminating with uncaught exception of type NSException

Nisarg Shah

unread,
Aug 2, 2016, 8:47:08 AM8/2/16
to Firebase Google Group
Hey Coach Roebuck ,

I am facing the same issue. I am not able to find the solution on this. 

Did you get your solution? If yes can you please post here ?

Thnaks,
Nisarg Shah

Nisarg Shah

unread,
Aug 3, 2016, 8:54:34 AM8/3/16
to Firebase Google Group
Hello Coach Roebuck ,

Finally, I have found complete solution for this crash.

For the error no :1 

To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/Y0Yjwu)


Solution is as below -

Go to : 

> Edit Scheme , then select 

> Run (Debug) , then select 

> Arguments

> Add “-FIRAnalyticsDebugEnabled” @ Argument Passed on Launch


For Error 2 :

[NSData gtm_dataByGzippingData:]: unrecognized selector sent to class 0x19ff79d60

Solution is as below -

> Please check that you have added “-ObjC” at your Project’s “Bundle Settings” at “Other Linker Flag”.

> Please make sure that the same “-ObjC” value should be added at Target’s “Bundle Settings” at “Other Linker Flag”.

> Then, Clean and Build the Xcode.


Now, your code should work.
>> If you still face same issue then quit the Xcode once and re-open the same project again.

Hope this will Help you out!

Cheers!
Nisarg Shah.



On Tuesday, 26 July 2016 07:43:08 UTC+5:30, Coach Roebuck wrote:

Michael Lehenbauer

unread,
Aug 3, 2016, 4:02:27 PM8/3/16
to Firebase Google Group
Hey Coach Roebuck and Nisarg,

Glad you found a solution.  Are you guys using the Firebase pod or downloading the Firebase SDK zip manually?  

If you're using the zip, you do indeed need to add the -ObjC flag as documented at the bottom of the page here.  Are those the instructions you followed?  

Else if you're using the pod then something weird might be going on.

Thanks!
-Michael

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/f1b46341-6346-42bd-ace1-f178ec9eadae%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Vyacheslav Petrukhin

unread,
Nov 5, 2016, 12:12:13 PM11/5/16
to Firebase Google Group
Is it possible to do this using '-force_load` instead of '-ObjC' ?

среда, 3 августа 2016 г., 23:02:27 UTC+3 пользователь Michael Lehenbauer написал:

Qiuni Lai

unread,
Nov 23, 2016, 11:09:15 AM11/23/16
to Firebase Google Group
Hello, Michael Lehenbauer

I have faced the same problem, I use cocoa pod to install Firebase. "Firbase.configure" not crash on simulator, but crashed on my device, same log as Coach Roebuck 
and -ObC not work for me
Reply all
Reply to author
Forward
0 new messages