-
Notifications
You must be signed in to change notification settings - Fork 24.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CocoaPods could not find compatible versions for pod "React/Core" upgrading to 0.60.0 #25553
Comments
Podfile is wrong. See https://github.com/facebook/react-native/blob/v0.60.0/template/ios/Podfile |
Not only we should change project's |
Hey , |
Hi, Till now I am not using React-RCTVibration. but with the latest upgrade, it is asking me to install as react has its dependency. Not only this lib other libs like React-RCTNetwork, React_RCTSettings I was not using, but it is forcing me to install because of latest upgrade, Is there any way we can ignore libs we are not using and use only which is needed. Please let me know, this will reduce a lot of compile time. Thanks FYI I am using cocoa pods and my project is a hybrid project |
Same issue.
I am getting this error:
|
Facing same issue while migrating to 0.60:
|
after creating a new project with version 0.60 I see the Podfile changes `platform :ios, '9.0' target 'test' do Pods for testpod 'React', :path => '../node_modules/react-native/' pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact' pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' target 'testTests' do use_native_modules! target 'test-tvOS' do Pods for test-tvOStarget 'test-tvOSTests' do end |
👋 everyone. Has we mentioned in the blogpost, the Pods dependency has changed -> 2321b3f You need to change your Pod configuration to match the new format. |
it worked, you saved my day. |
This is garbage. No wonder people are leaving React Native in droves. |
@tianjyan I actually did a file search for the I have the exact same error output the person who started this issue got and this part confuses me: [!] 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/`)`. This is my first time editing this part of the code, and I may have interpreted it wrongly. I understood it to mean: Can anyone weigh in as to whether I'm correct in thinking this? I already did a search of file contents for my entire project directory and did not get a hit for any place |
@sudomann Do you remove |
@tianjyan Nope, I didn't do that. I doubt it would change anything if I did that. See this answer on my stack overflow post. I haven't had time to try out his suggestion yet, but if you're facing the same issue as me, go ahead and see if it solves the issue. |
Here is a little workaround I'm using right now, run this bash command in the root directory of the project which replaces grep -rl "s.dependency 'React/Core'" node_modules/ | xargs sed -i '' 's=React/Core=React-Core=g' |
where is the |
this solved |
I had the same problem after upgrading react (and the podfile). What did it for me was deleting podfile.lock |
@predbjorn 's suggestion worked for me. Thank you |
@asleepace workaround worked for me. |
Nothing worked for regarding this issue. I did run following command grep -rl "s.dependency 'React/Core'" node_modules/ | xargs sed -i '' 's=React/Core=React-Core=g' But when I ran pod install I got following errors Installing glog (0.3.5) Copyright (c) Facebook, Inc. and its affiliates.This source code is licensed under the MIT license found in theLICENSE file in the root directory of this source tree.set -e PLATFORM_NAME="${PLATFORM_NAME:-iphoneos}" if [ -z "$CURRENT_ARCH" ] || [ "$CURRENT_ARCH" == "undefined_arch" ]; then
fi export CC="$(xcrun -find -sdk $PLATFORM_NAME cc) -arch Remove automake symlink if it existsif [ -h "test-driver" ]; then ./configure --host arm-apple-darwin Fix build for tvOScat << EOF >> src/config.h /* Add in so we have Apple Target Conditionals */ /* Special configuration for AppleTVOS */ /* Special configuration for ucontext */ Prepare exported header includeEXPORTED_INCLUDE_DIR="exported/glog" checking for a BSD-compatible install... /usr/bin/install -c |
Question: Unable to find a specification for 'React-RCTActionSheet(= 0.61.5)' depend upon by React |
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 |
Actually got the same but with intercom, can't figured out what's wrong or just how to fixed it ?
|
With the Podfile template linked above, you get this error:
Which makes perfect sense, because the only The linked Podfile doesn't work. No other solution in this thread. Why is this ticket closed with no solution to a widespread problem, which should be covered in the official documentation? |
Yeah, the project seems unmaintained. Tons of critical bugs like this, where no one gives an answer and it somehow gets closed. So many undocumented, but critical steps to making a React-Native module. As much as I appreciate using JSX instead of Apple's terrible Xcode UI-builder-UI, it's just not worth it when it means I have to use a tool that's arguably even more unmaintained than Apple's. |
Try this out, it worked like a charm |
Please also point us to any documentation on how to do that. |
same here
How should I proceed? |
For those updating from an older react-native version (i.e. 0.62.xx to 0.63.xx), running |
After following the complete thread nothing works :). Here is the final solution which works like charm for me. |
|
pod install is failing. I found fix here facebook/react-native#25553
If You getting any error |
I just ran this command that it gave me: |
thanks this work for me! |
Works for me. |
I'm trying to get this working with Xcode 12.4, and i'm coming across the same issue also with cocoapods. This is our current package.json
Here is out current PodFile
Whenever I run
I've gone into the node modules folder, and I can't see anything referring to this podspec, so when I install the node modules this podspec is missing. I've tried the following so far.
I've unfortunately run out of ideas here and I really need help to get this resolved. |
@jaswantjatav Thanks it solved issuse |
React Native version:
^0.60.0
Steps To Reproduce
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:
The text was updated successfully, but these errors were encountered: