evollu / react-native-fcm

react native module for firebase cloud messaging and local notification
MIT License
1.73k stars 681 forks source link

symbol(s) not found for architecture x86_64 #1123

Open Cyberfolks opened 4 years ago

Cyberfolks commented 4 years ago

react native ^0.59.10. react: 16.8.3 react-native-fcm 16.2.4

Undefined symbols for architecture x86_64: "_FIRMessagingConnectionStateChangedNotification", referenced from: -[RNFIRMessaging init] in libRNFIRMessaging.a(RNFIRMessaging.o) "_FIRMessagingSendErrorNotification", referenced from: -[RNFIRMessaging init] in libRNFIRMessaging.a(RNFIRMessaging.o) "_FIRMessagingSendSuccessNotification", referenced from: -[RNFIRMessaging init] in libRNFIRMessaging.a(RNFIRMessaging.o) "_OBJCCLASS$_FIRApp", referenced from: objc-class-ref in AppDelegate.o "_OBJCCLASS$_FIRInstanceID", referenced from: objc-class-ref in libRNFIRMessaging.a(RNFIRMessaging.o) "_OBJCCLASS$_FIRMessaging", referenced from: objc-class-ref in libRNFIRMessaging.a(RNFIRMessaging.o) "_OBJCCLASS$_FIROptions", referenced from: objc-class-ref in libRNFIRMessaging.a(RNFIRMessaging.o) "_kFIRInstanceIDScopeFirebaseMessaging", referenced from: -[RNFIRMessaging getEntityFCMToken:rejecter:] in libRNFIRMessaging.a(RNFIRMessaging.o) -[RNFIRMessaging deleteEntityFCMToken:rejecter:] in libRNFIRMessaging.a(RNFIRMessaging.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)