Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
akinzalowevidation opened this issue Oct 20, 2021 · 1 comment
Labels
backlog We hope to fix this feature/bug in the future feature request Request for a new feature

Comments

@akinzalowevidation
Copy link

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'
@johnkiely1
Copy link
Member

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 johnkiely1 added backlog We hope to fix this feature/bug in the future feature request Request for a new feature labels Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog We hope to fix this feature/bug in the future feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants