Firebase, Fabric and Crashlytics with the -ObjC linker flag without Cocoapods iOS

Trying to add Firebase Messaging to my iOS app that already has Fabric/Crashlytics , and I'm trying to add it without Cocoapods .

I followed the readme instructions in the Firebase SDK zip file, and as soon as I add the -ObjC linker -ObjC to the target, it causes a compilation error for duplicate characters for Fabric / Crashlytics

Then I found out that I used -force_load and pointed it to the Firebase.h file. This allowed me to compile, but when I tried FIRAPP.configure() , this error occurred:

 2016-11-30 14:33:31.862 Parents[243] <Debug> [Firebase/Core][I-COR000001] Configuring the default app. 2016-11-30 14:33:32.029 Parents[243:24612] +[NSData gtm_dataByGzippingData:error:]: unrecognized selector sent to class 0x3159a53c 

Has anyone ever experienced this before? Please note that I do not use Cocoapods for all three.

+5
source share
1 answer

I actually had the same problem. My amazing colleague suggested updating Fabric and Crashlytics to the latest version, and it worked. Try it!

+4
source

Source: https://habr.com/ru/post/1260612/


All Articles