react-native: CocoaPods could not find compatible versions for pod "React/Core" upgrading to 0.60.0
React Native version: ^0.60.0
Steps To Reproduce
- Create a Podfile similar to this:
platform :ios, '10.0'
target 'MyTarget' do
# inherit! :search_paths
# Pods for testing
react_native_path = "../node_modules/react-native"
pod 'React', :path => "#{react_native_path}", :subspecs => [
'Core',
'CxxBridge',
'DevSupport',
'RCTText',
'RCTNetwork',
'RCTImage',
'RCTWebSocket',
]
pod "yoga", :path => "#{react_native_path}/ReactCommon/yoga"
pod 'Folly', :podspec => "#{react_native_path}/third-party-podspecs/Folly.podspec"
end
npm install
cd ios && pod install
In version 0.59 this worked as expected and the pod install did not fail.
Error message from Cocoapods:
[!] CocoaPods could not find compatible versions for pod "React/Core":
In Podfile:
React/Core (from `../node_modules/react-native`)
None of your spec sources contain a spec satisfying the dependency: `React/Core (from `../node_modules/react-native`)`.
You have either:
* 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.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 37
- Comments: 44 (1 by maintainers)
Commits related to this issue
- I'm getting error at ParfumeRecognizer pod install is failing. I found fix here https://github.com/facebook/react-native/issues/25553 — committed to salsita/rn-fetch-blob by saintego 4 years ago
Here is a little workaround I’m using right now, run this bash command in the root directory of the project which replaces
React/Core
withReact-Core
in all the npm modulesFor those updating from an older react-native version (i.e. 0.62.xx to 0.63.xx), running
pod update
will fix the issue,pod install
does not work.This is garbage. No wonder people are leaving React Native in droves.
Not only we should change project’s
Podfile
, but also the third party deps also should update their repos. The.podspec
file that containss.dependency 'React/Core'
should change tos.dependency 'React-Core
.Podfile is wrong. See https://github.com/facebook/react-native/blob/v0.60.0/template/ios/Podfile
I am also facing the same issue.
Hey , @tianjyan Thanks it is fixed by this . Not only we should change project’s Podfile, but also the third party deps also should update their repos. The .podspec file that contains s.dependency ‘React/Core’ should change to s.dependency 'React-Core.
where is the
.podspec
file?Facing same issue while migrating to 0.60: when we try ‘pod install’, below given error appears:
Please update this line into node_modules/react-native-keepcall/RNCallKeep.podspec
Same issue.
react: ^16.8.6
andreact-native: 0.60.2
I do not haveuse_frameworks
.I am getting this error:
not work !
Works for me.
I had the same problem after upgrading react (and the podfile). What did it for me was deleting podfile.lock
I have the same problem,
👋 everyone.
Has we mentioned in the blogpost, the Pods dependency has changed -> https://github.com/facebook/react-native/commit/2321b3f
You need to change your Pod configuration to match the new format.
Please also point us to any documentation on how to do that. Please don’t assume that devs in React-Native realm already know iOS nuances 😐
if you are getting this error the you need to in latest version of react-native-image-crop-picker try installing
npm i react-native-image-crop-picker@0.25.0 --save
and cd ios andpod install
this solved
same issue. 😦. How to fix
Actually got the same but with intercom, can’t figured out what’s wrong or just how to fixed it ?
Some 3rd party modules have already updated their podspecs. What worked for me was upgrading the 3rd party module itself (in package.json). In my case that was
rn-fetch-blob
.I just ran this command that it gave me:
pod update Folly --no-repo-update
and I don’t get the error anymore.After following the complete thread nothing works 😃. Here is the final solution which works like charm for me.
http://themasterworld.com/cocoapods-could-not-find-compatible-versions-for-pod-react-core-upgrading-to-0-63-x
Try this out, it worked like a charm In Root Directory run this command grep -rl “s.dependency ‘React/Core’” node_modules/ | xargs sed -i ‘’ ‘s=React/Core=React-Core=g’
Source: https://stackoverflow.com/questions/58305191/react-native-fetch-blob-issue-pod-not-installing-for-ios