Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[!] Unable to find a specification for Yoga (= 0.42.3.React) depended upon by React/Core #13046

Closed
BaoBaoJianqiang opened this issue Mar 21, 2017 · 4 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@BaoBaoJianqiang
Copy link

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?

@xperiatrix
Copy link

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

@BaoBaoJianqiang
Copy link
Author

BaoBaoJianqiang commented Mar 21, 2017

Yoga works now. but anther issue occurs:

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

@hramos
Copy link
Contributor

hramos commented Mar 21, 2017

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!

@hramos hramos closed this as completed Mar 21, 2017
@flyingxu
Copy link

flyingxu commented Dec 10, 2017

[!] 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.

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants