bugsnag-js icon indicating copy to clipboard operation
bugsnag-js copied to clipboard

React Native iOS: error: duplicate interface definition for class 'BugsnagApp'

Open akinzalowevidation opened this issue 4 years ago • 1 comments

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

  1. Add BugsnagNetworkRequestPlugin plugin to podfile
  2. Install pods
  3. Build RN iOS app
  4. See error

Environment

  • Bugsnag version: 7.13.2
  • Framework version (if any):
    • React-Native 0.63.4
  • 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'

akinzalowevidation avatar Oct 20 '21 16:10 akinzalowevidation

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.

johnkiely1 avatar Oct 22 '21 08:10 johnkiely1