venepe / react-native-music-metadata

6 stars 15 forks source link

how to install on modern versions of React Native? #12

Open heaversm opened 1 year ago

heaversm commented 1 year ago

Hi - when I try to install this as instructed, I first get an error on link:

error: unknown command 'link'

If I attempt to install the way I installed other modules, by then switching to the ios directory and running pod install, I get:

[!] CocoaPods could not find compatible versions for pod "React/Core":
  In Podfile:
    RNMusicMetadata (from `../node_modules/react-native-music-metadata`) was resolved to 0.0.2, which depends on
      React/Core

None of your spec sources contain a spec satisfying the dependency: `React/Core`.

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.

I tried the approach recommended on StackOverflow:

pod install --repo-update

as well as various versions of deleting podfile / package lock, etc.

I'm using:

"react": "18.2.0",
"react-native": "0.71.7",

on a non-m1 macbook pro - ventura 13.2.1

Any ideas of what else to try? Is it something with the Podspec?