React-native: [!] Unable to find a specification for `Yoga (= 0.42.3.React)` depended upon by `React/Core`

Created on 21 Mar 2017  路  4Comments  路  Source: facebook/react-native

When I use RN 0.42 in my old iOS project, I define a pod file as follows:

project 'RN3.xcodeproj'

target 'RN3' do

pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'RCTImage',
'RCTNetwork',
'RCTText',
'RCTWebSocket',
]

end

When I exec pod install in command line, there is an error message:
[!] Unable to find a specification for Yoga (= 0.42.3.React) depended upon by React/Core.

I check the React.podspec, I think there is something wrong in this file, is anybody meet the same issue?

Locked

Most helpful comment

[!] Unable to find a specification for yoga (= 0.51.0.React) depended upon by React/Core

I had a similar problem today and I fixed it by adding to my Podfile:
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

'yoga' is in lowercase.

All 4 comments

Add this line in your Podfile. Have a try.
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

Yoga works now. but anther issue occurs:

all the files like "jschelpers","cxxreact" and so on are not found in the React project

Hey, thanks for reporting this issue!

It looks like your description is missing some necessary information. Can you please add all the details specified in the template? This is necessary for people to be able to understand and reproduce the issue being reported.

I am going to close this, but feel free to open a new issue with the additional information provided. Thanks!

[!] Unable to find a specification for yoga (= 0.51.0.React) depended upon by React/Core

I had a similar problem today and I fixed it by adding to my Podfile:
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

'yoga' is in lowercase.

Was this page helpful?
0 / 5 - 0 ratings