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

Errors with Installing React Native Sentry Cocoapod #349

Closed
thenewt15 opened this issue Feb 8, 2018 · 3 comments
Closed

Errors with Installing React Native Sentry Cocoapod #349

thenewt15 opened this issue Feb 8, 2018 · 3 comments
Assignees

Comments

@thenewt15
Copy link

thenewt15 commented Feb 8, 2018

Installed for React Native with npm install react-native-sentry --save
Then ran react-native link react-native-sentry
This didn't add Sentry to my Pods folder, so I had to run pod install.

[I discovered the missing Pods when archiving failed for me].

During pods installation, a React folder was added, with a node_modules folder in it. This new node_modules folder is causing all kinds of errors during the packaging process because there are now two instance of several dependencies to resolve (because I already had a node_modules folder).

Additionally, its saying this React dependency (v0.11.0) is deprecated.

Bottom line, I can't build my project anymore because of this.

@HazAT
Copy link
Member

HazAT commented Feb 9, 2018

Did you follow our docs on how to install Sentry with cocoapods?
https://docs.sentry.io/clients/react-native/cocoapods/

@HazAT HazAT self-assigned this Feb 9, 2018
@thenewt15
Copy link
Author

Yes, I tried using that Podfile example. I finally got it working by removing the React subspecs in my Podfile that were already linked in XCode. I noticed in my 'Link Binary with Libraries' section that RCTImage, RCTText, RCTNetwork, and RCTWebSocket were already there. So I left them there and removed them from the Podfile. I think the double reference was causing issues.

@HazAT
Copy link
Member

HazAT commented Feb 12, 2018

OK good to know, I will close this or now.
Feel free to reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants