Undefined symbols for architecture armv7: “_OBJC_C

2020-05-24 20:20发布

问题:

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

回答1:

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



回答2:

s.static_framework = true

to podspec worked for me

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



回答3:

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