aareeph
aareeph

Reputation: 993

Undefined symbols for architecture armv7: "_OBJC_CLASS_$_FIRApp"

I am integrating Firebase in my app according to the instructions and added [FIRApp configure]; in the code however, while compiling the app I am getting the following error:

Undefined symbols for architecture armv7: "_OBJC_CLASS_$_FIRApp", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture armv7

Upvotes: 36

Views: 26843

Answers (4)

Somplesi
Somplesi

Reputation: 11

Put $(inherited) -ObjC -framework "AVFoundation" -framework "AudioToolbox" -framework "CFNetwork" -framework "CoreGraphics" -framework "CoreMedia" -framework "CoreMotion" -framework "CoreTelephony" -framework "CoreVideo" -framework "GLKit" -framework "GoogleMobileAds" -framework "MediaPlayer" -framework "MessageUI" -framework "MobileCoreServices" -framework "OpenGLES" -framework "QuartzCore" -framework "Security" -framework "StoreKit" -framework "SystemConfiguration" -weak_framework "AdSupport" -weak_framework "JavaScriptCore" -weak_framework "SafariServices" -weak_framework "WebKit"

Upvotes: 0

Jabbar
Jabbar

Reputation: 610

Updating the pod "Architectures" to $(ARCHS_STANDARD) worked for me.

enter image description here

Upvotes: 0

Rakesh Yembaram
Rakesh Yembaram

Reputation: 433

s.static_framework = true

to podspec worked for me

URL: How to use Firebase SDK as a Pod dependency?

Upvotes: 1

supp-f
supp-f

Reputation: 1327

Did CocoaPods write any warnings due to pods installation? I fixed a similar issue by setting OTHER_LDFLAGS build settings to $(inherited) flag.

Upvotes: 100

Related Questions