36

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

aareeph
  • 875
  • 1
  • 12
  • 20

4 Answers4

100

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

buczek
  • 2,011
  • 7
  • 29
  • 40
supp-f
  • 1,317
  • 1
  • 9
  • 14
  • 3
    If you are wondering what does `$(inherited)` even mean, check this explanation : http://stackoverflow.com/questions/15343122/what-is-inherited-in-xcodes-search-path-settings – CoderPug Nov 12 '16 at 15:25
  • You mean I should have read those warnings instead of shrugging them off? Whodathunk! (Thank you... feeling sheepish) – user435779 Mar 14 '17 at 17:45
  • I did that. But I am getting this error : "clang: error: linker command failed with exit code 1 (use -v to see invocation)" – Saad Qureshi Apr 08 '17 at 04:48
  • 1
    Integration is terrible, why other libs work without extra steps? I had to make two with firebase, this worked. – Cristi Băluță Apr 30 '17 at 10:45
  • Be careful that all the different flavours (Debug, Release) of "Other Linker Flags" are set to $(inherited) – a.dibacco Feb 18 '19 at 09:58
  • working for me. I am using xCode 12 beta 4. Just add $(inherited) & -ObjC, other are removed . fix my problem Thanks @supp-f – Golam Mawla Newton Aug 29 '20 at 14:57
1

s.static_framework = true

to podspec worked for me

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

Rakesh Yembaram
  • 433
  • 4
  • 7
0

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

enter image description here

Jabbar
  • 590
  • 1
  • 7
  • 21
0

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"

Somplesi
  • 11
  • 2
  • Hi Somplesi! Could you provide some more information about how your answer solves the problem? – Kezz Nov 05 '20 at 15:28
  • It works with: -ObjC -framework "AVFound.....................ework "SafariServices" -weak_framework "WebKit" into "Other Linker Flags" field of "Build Setting" of "Targets" of your App – Somplesi Nov 06 '20 at 16:58