Undefined symbols for architecture armv7:
See original GitHub issueAfter implementing the readme the build directly on a device fails with these errors:
Undefined symbols for architecture armv7: "_OBJC_CLASS_$_FIRApp", referenced from: objc-class-ref in AppDelegate.o "_OBJC_CLASS_$_FIRInstanceID", referenced from: objc-class-ref in libRNFIRMessaging.a(RNFIRMesssaging.o) "_OBJC_CLASS_$_FIRMessaging", referenced from: objc-class-ref in libRNFIRMessaging.a(RNFIRMesssaging.o) "_kFIRInstanceIDTokenRefreshNotification", referenced from: -[RNFIRMessaging setBridge:] in libRNFIRMessaging.a(RNFIRMesssaging.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
also these warnings:
ld: warning: object file (/PATH-byxbzdyvvunexgaoyfngwacuplnc/Build/Products/Debug-iphoneos/libPods-Starmind.a(Pods-App-dummy.o)) was built for newer iOS version (9.0) than being linked (7.0) ld: warning: Auto-Linking supplied '/PATH/App/ios/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/FirebaseInstanceID', framework linker option at /PATH/App/ios/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/FirebaseInstanceID is not a dylib
Any hints what I might be doing wrong? Thanks!
Issue Analytics
- State:
- Created 7 years ago
- Comments:15 (8 by maintainers)
Posting here if someone else ends up with the same error.
I had the same issue when using CocoaPods and it occurs directly after
pod install
without adding anything toAppDelegate.m
. Tried with RN: 0.30, 0.28 and CocoaPods: 1.0.1 with fresh projects.Did not manage to work around it, but using the non-cocoapods approach and adding Firebase manually worked perfect.
Running
@derdav3 can I close this?