Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pod installation failed with react native 0.44

I was working on a react native project with the local database. I used this https://github.com/andpor/react-native-sqlite-storage for local database access. It was working fine with RN 0.41.

But now when I upgrade my RN version to 0.44 I am getting following errors with pod install.

Unable to satisfy the following requirements:
- `Yoga (= 0.44.0.React)` required by `React/Core (0.44.0)`

None of your spec sources contain a spec satisfying the dependency: `Yoga (= 0.44.0.React)`.

You have either:
 * out-of-date source repos which you can update with `pod 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.

This is my podfile:

target 'ProjectName' do
  pod 'React', :path => '../node_modules/react-native' <br>
  pod 'react-native-sqlite-storage', :path => '../node_modules/react-native-sqlite-storage'
end

I have tried lots of things but not able to solve this error. I created a new react project but and it was not working in that too

like image 576
Pankaj Agrawal Avatar asked May 08 '17 07:05

Pankaj Agrawal


People also ask

How do I delete Fbreactnativespec?

I've faced the following error when I want to start the IOS app with the "react-native run-ios" command. If I start the debug build from XCode, it is started successfully. Run unset npm_config_prefix to unset it. Run unset npm_config_prefix to unset it.


1 Answers

pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
like image 88
user1477509 Avatar answered Sep 23 '22 09:09

user1477509