react-native-fcm icon indicating copy to clipboard operation
react-native-fcm copied to clipboard

error: use of undeclared identifier 'FIRInstanceID'

Open jthink0228 opened this issue 7 years ago • 2 comments

"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

jthink0228 avatar Aug 09 '18 09:08 jthink0228

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

evollu avatar Aug 10 '18 14:08 evollu

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

MIRTAHAALI avatar May 14 '24 14:05 MIRTAHAALI