ueno-llc / react-native-starter

Professional react-native starter kit with everything you'll ever need to deploy rock solid apps
https://ueno-llc.github.io/react-native-starter
MIT License
573 stars 89 forks source link

CocoaPods could not find compatible versions for pod "Sentry" #208

Closed pcg92 closed 5 years ago

pcg92 commented 5 years ago

Im using mac os, when I run the command yarn install im getting this output: Any idea?

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

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

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.
jeremybarbet commented 5 years ago

Hi there!

As recomanded in the warning message you can try to update your cocoapods repo:

cd ios
pod repo update
pod install
pcg92 commented 5 years ago

Nice, the error is gone, but running the ios emulator im getting :

Error: Unable to resolve module utils/theme from /Users/me/app/src/index.ts: Module utils/theme does not exist in the Haste module map

Thanks for your fast response!

edit: fixed with

  1. Clear watchman watches: watchman watch-del-all.
  2. Delete the node_modules folder: rm -rf node_modules && npm install.
  3. Reset Metro Bundler cache: rm -rf /tmp/metro-bundler-cache-* or npm start -- --reset-cache.