Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot integrate Firebase iOS SDK - Undefined symbols for architecture x86_64:

I've been trying to get this SDK installed into my iOS project without much success.

At first, I tried to install it manually, using the setup instructions from here: https://firebase.google.com/docs/ios/setup#initialize_firebase_in_your_app

However, after following the readme file exactly, when I try use this code:

[FIRApp configure];

After importing Firebase.h into the header file, it doesn't recognise the FIRApp and the reason seems to me missing files from the framework as FIRApp.h doesn't exist in the headers.

So, I resorted to the much-hated, Cocoapods installation. Everything installs fine and no warnings show during the pod install part. However, again, when I add the following code: [FIRApp configure]; I am present with a different error:

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FIRApp", referenced from: objc-class-ref in AppDelegate.o

For the life of me, I cannot figure this out. I have searched Google and SO with various solutions that haven't helped.

I would like to get it working with Cocoapods as I have done all the leg work with getting it installed now.

like image 232
Robert J. Clegg Avatar asked Jul 05 '16 09:07

Robert J. Clegg


3 Answers

Im fan of carthage but firebase is only by manual or cocoapods, so I used cocoapods, I just fixed this by setting Other Linker Flag property to $(inherited).

like image 123
Robert John Matias Alkuino Avatar answered Nov 07 '22 14:11

Robert John Matias Alkuino


First, try pod update command on your project root directory. If you see a warning there similar to target overrides the OTHER_LDFLAGS build setting defined in ..., check your Target's Build Settings. You'll find a Other Linker Flag property there. Set its value as $(inherited).

This solved the problem for me.

like image 31
PPrasai Avatar answered Nov 07 '22 15:11

PPrasai


Uninstall firebase related pods

#pod 'Firebase/Core

#pod 'Firebase/RemoteConfig'

Then

pod install

Reinstall pods

pod 'Firebase/Core'

pod 'Firebase/RemoteConfig'

then

pod install
like image 1
Ted Avatar answered Nov 07 '22 14:11

Ted