bugsnag-js
bugsnag-js copied to clipboard
React Native iOS: error: duplicate interface definition for class 'BugsnagApp'
Describe the bug
This may not be a bug, but rather that the BugsnagNetworkRequestPlugin is not yet supported with BugSnagReactNative.
However, this changelog mentions support being added after adding the BugsnagNetworkRequestPlugin.
Currently after adding BugsnagNetworkRequestPlugin I am getting iOS build errors for duplicate definitions of BugsnagApp. Are there further changes required in order to add support for network breadcrumbs?
Steps to reproduce
- Add
BugsnagNetworkRequestPluginplugin to podfile - Install pods
- Build RN iOS app
- See error
Environment
- Bugsnag version:
7.13.2 - Framework version (if any):
- React-Native
0.63.4
- React-Native
- Device (e.g. iphonex):
- iPhone 11 iOS 15.0
Error messages:
node_modules/@bugsnag/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/include/Bugsnag/BugsnagApp.h:15:1: error: duplicate interface definition for class 'BugsnagApp'
Hi @akinzalowevidation.
Yes you are correct in that BugsnagNetworkRequestPlugin in not yet supported in the Bugsnag react native notifier. We do have a roadmap item to add this support. We don't have a firm eta on this at the moment but I will let you know of any updates on this thread.
Having said that we do already automatically capture the network requests for the JS layer of RN apps, without the need for that plugin, and this work would be to add that functionality for requests coming directly from the native layers.