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?
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.
Most helpful comment
[!] Unable to find a specification for
yoga (= 0.51.0.React)depended upon byReact/CoreI 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.