ios - 使用react-native-webengage 添加 FirebaseMessaging pod 时应用程序在加载时崩溃

标签 ios firebase react-native

添加适用于 iOS 的 FirebaseMessaging 时,应用在加载时崩溃。 React-native版本:0.60.4

https://github.com/WebEngage/react-native-webengage中的ExampleApp进行复制:

  1. 在 Podfile 中添加 FirebaseMessaging:
  pod 'Firebase/Core'
  pod 'Firebase/Messaging'
  • 在 AppDelegate.m 中添加以下行:
  • #import <Firebase.h>
    
    
      [FIRApp configure];
    
  • 更新 pod 后运行适用于 ios 的 React-native 应用:
  • pod install 
    react-native run-ios
    

    监控react-native log-ios以获取此错误

    Sep 11 12:21:20 go-mac-darshita ExampleApp[58400] <Error>: assertion failed: 18F203 16E226: libxpc.dylib + 80700 [B558DAD6-9E08-3208-B352-1CA4137B67C8]: 0x7d
    Sep 11 12:21:20 go-mac-darshita Unknown[58400] <Error>: 
    Sep 11 12:21:20 go-mac-darshita com.apple.CoreSimulator.SimDevice.9DF1B234-3BCE-4F5A-B29E-04CB9F347D8A[57091] (UIKitApplication:com.webengage.reactnative[0xaed8][57116][58400]) <Notice>: Service exited due to SIGABRT
    Sep 11 12:21:22 go-mac-darshita com.apple.CoreSimulator.SimDevice.9DF1B234-3BCE-4F5A-B29E-04CB9F347D8A[57091] (com.apple.securityuploadd) <Notice>: Service only ran for 5 seconds. Pushing respawn out by 5 seconds.
    

    最佳答案

    实现 Disable Swizzling section 中提到的步骤WebEngage 文档。

    关于ios - 使用react-native-webengage 添加 FirebaseMessaging pod 时应用程序在加载时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57883754/

    相关文章:

    javascript - 一旦我设置了 screenProps 的 setState,如何避免在 tabNavigator 中重新渲染屏幕?

    objective-c - react native : Pass JS variable to AppDelegate

    objective-c - 对于 iOS 6,如何在后台线程上加载数据然后更新 UI?

    java - 即使传递了数据有效负载,当应用程序处于后台时也不会收到 Firebase 通知

    java: 无法访问 com.google.auth.Credentials 类文件,因为找不到 com.google.auth.Credentials

    react-native - 列表项头像不显示

    ios - 使用文件路径初始化 AG 地理数据库的对象返回“文件未找到

    ios - 在 ios 6 中使用 skp smtp 消息通过电子邮件发送超过 2 张图像

    ios - 如何为ViewController添加垂直滚动

    javascript - 将错误数据从 Firebase 或服务器响应传递给 Formik