【问题标题】:Firebase performance monitoring crash ios app after startFirebase性能监控启动后崩溃ios应用程序
【发布时间】:2022-01-21 17:12:06
【问题描述】:

我在我们的项目中使用 firebase 已经有一段时间了。我们决定实施性能监控。我将所有 FB 包更新到最新版本,一切正常。更新后,我添加了"@react-native-firebase/perf": "^14.2.2" install pods 并设置了 android。 Android 运行良好,但 ios 存在一些问题。

当我打开 ios 应用程序时,它会加载并正常运行 30 秒,然后冻结,我可以在 Xcode 日志中捕获此错误:

2022-01-20 12:32:31.885175+0100 APPNAME[473:51878] -[fir_7891ABC3-3A54-4945-8F53-592D0CAF4D03_GULNetworkURLSession _flex_swizzle_8d46847a_URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:]: unrecognized selector sent to instance 0x28003a2e0

2022-01-20 12:32:31.886164+0100 APPNAME[473:51878] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[fir_7891ABC3-3A54-4945-8F53-592D0CAF4D03_GULNetworkURLSession _flex_swizzle_8d46847a_URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:]: unrecognized selector sent to instance 0x28003a2e0'
*** First throw call stack:
(0x1818a50fc 0x19a0ead64 0x1819820c4 0x18183a524 0x181839660 0x102ed4b74 0x102ecb254 0x102ed49d4 0x1820afe1c 0x105c446d4 0x105c463b4 0x105c56898 0x18185dd84 0x181817f5c 0x18182b468 0x19d3c338c 0x1841ce5cc 0x183f4cf70 0x102a11bec 0x105b11aa4)
libc++abi: terminating with uncaught exception of type NSException
dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[fir_7891ABC3-3A54-4945-8F53-592D0CAF4D03_GULNetworkURLSession _flex_swizzle_8d46847a_URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:]: unrecognized selector sent to instance 0x28003a2e0'
terminating with uncaught exception of type NSException

知道怎么解决吗?

包装:

    "react-native": "0.64.1",

    "@react-native-firebase/analytics": "^14.2.2",
    "@react-native-firebase/app": "^14.2.2",
    "@react-native-firebase/crashlytics": "^14.2.2",
    "@react-native-firebase/perf": "^14.2.2",

更新

我尝试将 firebase 降级到最初使用的版本 13.1.0,然后我在此版本中添加了 perf,但仍然存在错误

【问题讨论】:

    标签: ios react-native firebase-performance


    【解决方案1】:

    我可以通过 use_flipper!({ 'Flipper' => '0.78'}) 解决这个问题

    【讨论】:

      猜你喜欢
      • 2016-02-25
      • 2018-11-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-06
      • 1970-01-01
      • 2018-12-27
      相关资源
      最近更新 更多