pooh
pooh

Reputation: 241

When building with React Native, an error occurs related to @ react-native-firebase / messaging

We are developing a smartphone app with React-Native. It worked fine until last week, but suddenly I couldn't even build it from around the day before yesterday, and now I get the following error:


/PRJDIR/node_modules/@react-native-firebase/messaging/ios/RNFBMessaging/RNFBMessagingSerializer.m:34:40: expected a type
+ (NSDictionary *)remoteMessageToDict:(FIRMessagingRemoteMessage *)remoteMessage {

/PRJDIR/node_modules/@react-native-firebase/messaging/ios/RNFBMessaging/RNFBMessagingSerializer.m:35:58: property 'appData' not found on object of type '__strong id'
  return [self remoteMessageUserInfoToDict:remoteMessage.appData];

/PRJDIR/node_modules/@react-native-firebase/messaging/ios/RNFBMessaging/RNFBMessagingModule.m:295:29: no visible @interface for 'FIRMessaging' declares the selector 'sendMessage:to:withMessageID:timeToLive:'
  [[FIRMessaging messaging] sendMessage:data to:to withMessageID:messageId timeToLive:[ttl intValue]];
                                                      ^
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening PRJ.xcworkspace. Run CLI with --verbose flag for more details.

The development environment is as follows.

I have tried the following.

I've been worried for about 3 days, but I haven't been able to solve it ... If you know the solution, please let me know.

Upvotes: 1

Views: 1726

Answers (1)

Yakup DURMUS
Yakup DURMUS

Reputation: 158

what is @react-native-firebase/app version?

If package react-native-firebase/messaging is 7.4.2 version, I think the package react-native-firebase/app version be 8.2.0 version. You may try this version.

Upvotes: 3

Related Questions