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-Coredepended upon byrn-fetch-blobYou have either:
- out-of-date source repos which you can update with
pod repo updateor withpod 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 updatedoes not happen onpod installby 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
change your package.json from
"rn-fetch-blob": "^0.10.15"to"rn-fetch-blob": "0.10.15", clean node_modules and npm install againIn 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.Xor at least0.11.Xversion number so everyone doesn’t auto-upgrade to it?if you’re upgrading to react-native >= 0.62 make sure to have
I missed this step in my upgrade and got the same error, adding in
use_react_native!cleaned it upStill existing problem, can be fixed like this
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