Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

NablaCore with Sentry #5

Open
rjuevesano opened this issue Jul 18, 2023 · 9 comments
Open

NablaCore with Sentry #5

rjuevesano opened this issue Jul 18, 2023 · 9 comments

Comments

@rjuevesano
Copy link

I already have Sentry (@sentry/react-native: ^5.6.0) installed and I want to install nabla and I'm getting this issues.

I followed the documentation here
https://docs.nabla.com/docs/init-rn

image

after running pod update Sentry
image

@benoitletondor
Copy link
Contributor

Hello, thanks for the issue.

Yes our iOS SDK (that the React Native one uses under the hood) depends on Sentry 8.1.0: https://github.com/nabla/nabla-ios/blob/main/NablaCore.podspec#L27

So since @sentry/react-native seems to depend on Sentry 8.8.0 it conflicts. I suggest using a previous version of @sentry/react-native as a quick fix and we'll have to bump our internal dependencies on our side, but it can take a bit of time before we actually push it.

@rjuevesano
Copy link
Author

Hello, thanks for the issue.

Yes our iOS SDK (that the React Native one uses under the hood) depends on Sentry 8.1.0: https://github.com/nabla/nabla-ios/blob/main/NablaCore.podspec#L27

So since @sentry/react-native seems to depend on Sentry 8.8.0 it conflicts. I suggest using a previous version of @sentry/react-native as a quick fix and we'll have to bump our internal dependencies on our side, but it can take a bit of time before we actually push it.

Thanks for the reply.

So I downgraded @sentry/react-native to 5.1.0
image

but then I'm getting this
image

@benoitletondor
Copy link
Contributor

It seems that @sentry/react-native version 5.1.0 depends on Sentry/Hybrid 8.2 and not 8.1

@rjuevesano
Copy link
Author

hi @benoitletondor can you help me what version should I used for @sentry/react-native? I can't find the exact version to work with Nabla. :(

@benoitletondor
Copy link
Contributor

I think 4.14.0 should work just fine

@rjuevesano
Copy link
Author

Thanks @benoitletondor but I'm getting this error when installing that version

[!] The 'Pods-ProjectName' target has libraries with conflicting names: libsentry.a.
Couldn't install Pods. Updating the Pods project and trying again...
Command `pod install` failed.
└─ Cause: The 'Pods-ProjectName' target has libraries with conflicting names: libsentry.a.

@benoitletondor
Copy link
Contributor

benoitletondor commented Jul 21, 2023

I'm not a Cocoapods expert but a quick Google search pointed me to a cache issue: https://stackoverflow.com/a/70391606/2508174

@rjuevesano
Copy link
Author

Thanks for that. I already tried it and even clean everything but still getting the same issue.

@benoitletondor
Copy link
Contributor

Well then I'm really sorry but I'm out of ideas, I don't think it's an issue from the Nabla SDK here but rather the Cocoapods setup which I'm not an expert of.

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

No branches or pull requests

2 participants