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`
instead of
pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
use lowercase yoga
pod "yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
others:
Michael-MBP:~ mick$ gem which cocoapods
/Users/mick/.rvm/gems/ruby-2.4.0@global/gems/cocoapods-1.3.1/lib/cocoapods.rb
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`
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"
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
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"
Most helpful comment
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