Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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

I followed the readme instructions in the Firebase SDK zip file and once I add the -ObjC linker flag to the target, it causes a duplicate symbol compile error for Fabric/Crashlytics

I then found out to use -force_load and pointed it to the Firebase.h file. This allowed me to compile, but when trying to FIRAPP.configure() it came up with this error:

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 I am not using Cocoapods for all three.

like image 321
The Nomad Avatar asked Nov 30 '16 22:11

The Nomad


People also ask

What is fabric and Firebase?

Firebase, Google's mobile and web application development platform, is swallowing Fabric and all its features. Incidentally, both Fabric and Firebase were once separate companies: Google acquired Fabric from Twitter in January 2017 and bought Firebase in October 2014.

What is firebase used for?

Firebase helps you develop high-quality apps, grow your user base, and earn more money. Each feature works independently, and they work even better together.

What is firebase SDK?

Firebase supports SDKs for Android, IOS, and Web. Combined with Firebase security rules and Firebase Auth, the mobile and web SDKs support serverless app architectures where clients connect directly to your Firebase database.


1 Answers

I actually had the same exact problem. My awesome coworker suggested to update Fabric and Crashlytics to the latest and it worked. Try that!

like image 193
YSK Avatar answered Nov 15 '22 05:11

YSK