// the profile
pod 'React', :path => './node_modules/react-native', :subspecs => [
'Core',
'RCTImage',
'RCTNetwork',
'RCTText',
'RCTWebSocket',
]
Fetching external sources
-> Fetching podspec for React from ./node_modules/react-native
Resolving dependencies of Podfile
[!] Unable to satisfy the following requirements:
Yoga (= 0.43.0-rc.2.React) required by React/Core (0.43.0-rc.2)None of your spec sources contain a spec satisfying the dependency: Yoga (= 0.43.0-rc.2.React).
You have either:
pod repo update.Note: as of CocoaPods 1.0, pod repo update does not happen on pod install by default.
As the error is trying to tell you. You need to include the dependency Yoga.
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

I do it,but the "Yoga.h" file not found. React and Yoga in the same level, could import Yoga.h from React.h? @ptomasroos
Thanks @ptomasroos I added the explicit dependency with RN 0.43.0-rc3 and didn't get any error 馃憤
@cky113999742 can we close this?
Not fixed in latest releases or master branch
This issue is there in 0.42.3 as well
You need to include the Yoga reference in your Podfile too: https://facebook.github.io/react-native/releases/next/docs/integration-with-existing-apps.html#podfile
pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
If I may ask, What is this Yoga dependency? Also, could anyone explain the difference between a React.xcodeproj and ReactCxx.xcodeproj ? These are something new in 0.42 version.
I think this should be fixed in master branch so newcomers will not have this issue.
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.
Im still reproducing this!, i added Yoga to my pod file but still cannot find it
Most helpful comment
As the error is trying to tell you. You need to include the dependency Yoga.