evollu / react-native-fcm

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

error: use of undeclared identifier 'FIRInstanceID' #1016

Open jthink0228 opened 5 years ago

jthink0228 commented 5 years ago

"react-native": "^0.53.3", "react-native-fcm": "^14.1.0",

IOS get this issue, how can i fixed it ? very thanks

/Users/Apple/ajnative/myapp/node_modules/react-native-fcm/ios/RNFIRMessaging.m:414:7: error: use of undeclared identifier 'FIRInstanceID' [[FIRInstanceID instanceID]tokenWithAuthorizedEntity:entity scope:kFIRInstanceIDScopeFirebaseMessaging options:@{@"apns_token": deviceToken} handler:^(NSString _Nullable token, NSError _Nullable error) { ^ /Users/Apple/ajnative/myapp/node_modules/react-native-fcm/ios/RNFIRMessaging.m:429:7: error: use of undeclared identifier 'FIRInstanceID' [[FIRInstanceID instanceID]deleteTokenWithAuthorizedEntity:entity scope:kFIRInstanceIDScopeFirebaseMessaging handler:^(NSError _Nullable error) { ^ /Users/Apple/ajnative/myapp/node_modules/react-native-fcm/ios/RNFIRMessaging.m:441:5: error: use of undeclared identifier 'FIRInstanceID' [[FIRInstanceID instanceID]deleteIDWithHandler:^(NSError _Nullable error) { ^ 3 errors generated. Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

evollu commented 5 years ago

sounds like SDK installation issue. do you have similar podlock like this https://github.com/evollu/react-native-fcm/blob/master/Examples/simple-fcm-client/ios/Podfile.lock

MIRTAHAALI commented 1 month ago

Can any one help me out? I am having similar issue..