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

Error when installing Sentry on ios #746

Closed
4 tasks
kriptonhaz opened this issue Jan 26, 2020 · 8 comments
Closed
4 tasks

Error when installing Sentry on ios #746

kriptonhaz opened this issue Jan 26, 2020 · 8 comments

Comments

@kriptonhaz
Copy link

OS:

  • Windows
  • [*] MacOS
  • Linux

Platform:

  • [*] iOS
  • Android

SDK:

  • [*] @sentry/react-native
  • react-native-sentry

react-native version: 0.61.5
@sentry/react-native version: 1.2.1

Init Code:

Sentry.init({
  dsn: 'https://...@sentry.io/...'
});

I have following issue:

I've been trying to install this package in my projects, it's running smoothly on android, but on ios it can't run when trying to pod install, the error looks like this

[!] CocoaPods could not find compatible versions for pod "Sentry":
  In Podfile:
    RNSentry (from `../node_modules/@sentry/react-native`) was resolved to 1.2.1, which depends on
      Sentry (~> 4.4.0)

None of your spec sources contain a spec satisfying the dependency: `Sentry (~> 4.4.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

Steps to reproduce:

  • yarn add @sentry/react-native
  • yarn sentry-wizard -i reactNative -p ios android
  • cd ios
  • pod install

Actual result:

  • it's show error as the description

Expected result:

  • pod installed correctly
@HazAT
Copy link
Member

HazAT commented Jan 27, 2020

Please run pod repo update it just can't find the latest version because your local cache is outdated.

@HazAT HazAT closed this as completed Jan 27, 2020
@SamiChab
Copy link

The error persisted for me after running pod repo update
I deleted Podfile.lock and re-run pod install and it worked!

@Dsantacruz
Copy link

The error persisted for me after running pod repo update
I deleted Podfile.lock and re-run pod install and it worked!

This worked for me

@paulayo93
Copy link

You can also run pod install --repo-update or run pod update Sentry from the ios directory

@Sikandarkhan
Copy link

The error persisted for me after running pod repo update I deleted Podfile.lock and re-run pod install and it worked!

thank you it worked

@mashad6
Copy link

mashad6 commented Jan 28, 2022

The error persisted for me after running pod repo update
I deleted Podfile.lock and re-run pod install and it worked!

this worked thanks

@CyberWake
Copy link

this even works with flutter

The error persisted for me after running pod repo update I deleted Podfile.lock and re-run pod install and it worked!

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

9 participants