I have added the Firebase SDK manually to my project (can't use cocoapods due to configuration issues).
Using the following frameworks:
FirebaseCore.framework
FirebaseInstanceID.framework
Firebasemessageing.framework
In the AppDelegate
I have imported this following:
#import "Firebase.h
#import <FirebaseInstanceID/FirebaseInstanceID.h>
#import <FirebaseMessaging/FirebaseMessaging.h>
And then I reference the API:
[FIRApp configure];
All is fine when I build the project. However as soon as the app hits the Firebase SDK
API - I am getting the following crash:
Error message in the console:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSData gtm_dataByGzippingData:error:]: unrecognized selector sent to class 0x10553f168'
I have added all the required frameworks I can think of, yet still getting this issue.
Make sure you've added the GoogleToolboxForMac library to your project and you've added -ObjC to Other Linker Options in Build Settings.