Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[iOS]pod install error:[!] Unable to find a specification for Yoga (= 0.43.3.React) depended upon by React/Core #13526

Closed
firetheworld opened this issue Apr 16, 2017 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@firetheworld
Copy link

Hi,I'm integrate React Native into my application,and I have problem in the step pod install with error Information below:
[!] Unable to find a specification for Yoga (= 0.43.3.React) depended upon by React/Core

Here is my Podfile
`target 'testRN' do

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

use_frameworks!

end
`

I have already npm install , and here is my package.json
{ "name": "testRN", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest" }, "dependencies": { "react": "16.0.0-alpha.6", "react-native": "0.43.3" }, "devDependencies": { "babel-jest": "19.0.0", "babel-preset-react-native": "1.9.1", "jest": "19.0.2", "react-test-renderer": "16.0.0-alpha.6" }, "jest": { "preset": "react-native" } }

@Nathan-Smith
Copy link

You need to add Yoga to your Podfile
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga/Yoga.podspec'

@firetheworld
Copy link
Author

Hi, thanks,problem sovled!
I miss a commend in podfile cause I read the version 0.3 document,if you are on the version >=0.42 you have to add a line 'pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga/Yoga.podspec''

@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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants