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

[v3-docs][iOS] The name of the given podspec yoga doesn't match the expected one Yoga #463

Closed
mjmaix opened this issue Oct 5, 2017 · 4 comments

Comments

@mjmaix
Copy link

mjmaix commented Oct 5, 2017

Issue

following this instruction link pod install returns

Analyzing dependencies
Fetching podspec for `RNFirebase` from `../node_modules/react-native-firebase`
Fetching podspec for `React` from `../node_modules/react-native`
Fetching podspec for `Yoga` from `../node_modules/react-native/ReactCommon/yoga`
[!] The name of the given podspec `yoga` doesn't match the expected one `Yoga`

Solution

instead of

pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga"

use lowercase yoga

pod "yoga", :path => "../node_modules/react-native/ReactCommon/yoga"

Environment

  1. Application Target Platform:
    IOS
  1. Development Operating System:
    macOS High Sierra
  1. Build Tools:
  1. React Native version:
    "react": "16.0.0-beta.5",
    "react-native": "0.49.1",
  1. RNFirebase Version:
    "react-native-firebase": "^3.0.0"
  1. Firebase Module:
    11.4.2

others:
7. Cocoapods version

Michael-MBP:~ mick$ gem which cocoapods
/Users/mick/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-1.3.1/lib/cocoapods.rb
@robdonn
Copy link

robdonn commented Oct 6, 2017

I'm running into this issue as well, but changing "Yoga" to "yoga" doesn't work for me, it still thinks it should be looking for Yoga.

pod "yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
pod 'React', :path => '../node_modules/react-native', :subspecs => [
  'BatchedBridge', # Required For React Native 0.45.0+
  'Core',
  # Add any other subspecs you want to use in your project
]
[!] The name of the given podspec `yoga` doesn't match the expected one `Yoga`

@brianhiss
Copy link
Contributor

I had the same issue as @mjmaix, I used the same solution to fix the issue.

pod "yoga", :path => "../node_modules/react-native/ReactCommon/yoga"

@chrisbianca
Copy link
Contributor

I have good news for you, as of last today's v3.0.2 release, react-native link is supported for iOS and Android so you no longer need to set up React, Yoga, react-native-firebase, etc as Pods. You do still need to have Firebase installed using pods as recommended by Google.

Check out the new installation instructions:

iOS: http://invertase.link/ios
Android: http://invertase.link/android

I'm going to close this, but shout if you're still having issues

@lucasbento
Copy link

Just in case someone bumps into this (this is the first link on google when you search for that problem), I fixed mine doing the following:

ios/Podfile

-pod 'Yoga', path: "./../node_modules/react-native/ReactCommon/yoga/Yoga.podspec"
+pod 'yoga', path: "./../node_modules/react-native/ReactCommon/yoga/yoga.podspec"

bensonz added a commit to bensonz/native-navigation that referenced this issue Nov 23, 2017
Yoga needs to be in lower case. see [The name of the given podspec `yoga` doesn't match the expected one `Yoga`](invertase/react-native-firebase#463)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants