Rn-fetch-blob: Unable to run pod install and React Native link is throwing warning.

Created on 1 Jul 2019  路  8Comments  路  Source: joltup/rn-fetch-blob

I have used following versions
React Native version = 0.60.0-rc.3
Fetch Blob version = 0.10.15

react-native link command is giving following warning on new react-native version 0.60.

Screenshot 2019-07-01 at 6 34 10 AM

RNFB_ANDROID_PERMISSIONS=true react-native link rn-fetch-blob
warn Package "rn-fetch-blob" is using deprecated "rnpm" config that will stop working from next release. Please notify its maintainers about it.
RNFetchBlob checking app version ..
RNFetchBlob detected app version => 0.6
Add Android permissions => false
RNFetchBlob patching AndroidManifest.xml .. 
RNFetchBlob patching AndroidManifest.xml .. ok

Need to update pod dependencies for new version of react-native.

Here is the stack when i ran pod install

[!] CocoaPods could not find compatible versions for pod "React/Core":
  In Podfile:
    rn-fetch-blob (from `../node_modules/rn-fetch-blob`) was resolved to 0.10.6, 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.

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

[!] Package "rn-fetch-blob" is using deprecated "rnpm" config that will stop working from next release. Please notify its maintainers about it.

Most helpful comment

In Root Directory Run

grep -rl "s.dependency 'React/Core'" node_modules/ | xargs sed -i '' 's=React/Core=React-Core=g'

All 8 comments

Same issue here, any idea how to fix it?

The same thing is happening to me. If anyone has any idea how to solve this...

I'm going to use patch-package to apply Fouppy's fix until, hopefully, there is an update to this dependency.

I'm going to use patch-package to apply Fouppy's fix until, hopefully, there is an update to this dependency.

nice, that worked for me and i guess it is a quite good workaround while so many the RN60 PRs are still waiting to be merged

resolved by #397

In Root Directory Run

grep -rl "s.dependency 'React/Core'" node_modules/ | xargs sed -i '' 's=React/Core=React-Core=g'

Was this page helpful?
0 / 5 - 0 ratings