rn-fetch-blob: Unable to find a specification for `React-Core` depended upon by `rn-fetch-blob`

I got the following error after the following command:

pod install

[!] Unable to find a specification for React-Core depended upon by rn-fetch-blob

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.

Versions: “react-native”: “0.59.5”, “rn-fetch-blob”: “^0.10.16”,

Podfile:

...
pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'
...

What Am I doing wrong? Is it an issue related to the version of the library?

Thanks

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 12
  • Comments: 23

Most upvoted comments

change your package.json from "rn-fetch-blob": "^0.10.15" to "rn-fetch-blob": "0.10.15", clean node_modules and npm install again

In rn-fetch-blob.podspec file,update here s.dependency 'React-Core' change ‘-’ to ‘/’

In rn-fetch-blob.podspec file,update here s.dependency 'React-Core' change ‘-’ to ‘/’

Worked for me.

I apologize for the bad versioning scheme, yes this should have been at least a 0.11.x. Because this is a pre 1.0 library we haven’t been following semantic versioning very well. I’ll look into revising how we handle version numbers going forward though to reduce this problem.

For now I have updated the readme with a version compatibility warning

I just hit this today. Given that 0.10.16 is a breaking change, not a patch, shouldn’t it have been published with a 1.X or at least 0.11.X version number so everyone doesn’t auto-upgrade to it?

if you’re upgrading to react-native >= 0.62 make sure to have

require_relative '../node_modules/react-native/scripts/react_native_pods'
...
target <your app> do
...
use_react_native!(:path => config["reactNativePath"])
...
end 

I missed this step in my upgrade and got the same error, adding in use_react_native! cleaned it up

Still existing problem, can be fixed like this

aibit-speech-tracker____Documents_aibit-speech-tracker__-_____node_modules_rn-fetch-blob_rn-fetch-blob_podspec

This will do the trick for react native version ^0.62 s.dependency ‘React’

i actually had both this and the legacy unmaintained react-native-fetch-blob in my package.json… remove that fixed it… thanks yall