我克隆 git 并在 ios 中运行,但找不到 RTCAnimation
我使用 pod 进行编码:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga/Yoga.podspec'
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'RCTAnimation',
]
target 'RNFirebaseStarter' do
pod 'Firebase/Core'
end
并显示在终端中运行
[!] The name of the given podspec `yoga` doesn't match the expected one `Yoga`
Unable to find a specification for `yoga (= 0.52.1.React)` depended upon by `React/Core`
最佳答案
你能试着关注issue 463吗? ?
Solution
instead of
pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
use lowercase yoga
pod "yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
或者:
-pod 'Yoga', path: "./../node_modules/react-native/ReactCommon/yoga/Yoga.podspec"
+pod 'yoga', path: "./../node_modules/react-native/ReactCommon/yoga/yoga.podspec"
(意思是第一行被第二行代替)
请注意可能会有副作用,如 described here和 in this issue
I've discovered that it appear in a project I'm working after change the disk to case sensitive.
CocoaPods seems name the Yoga project as notRevert the disk fixed (at least locally) the issue.
查看此 patch for example .
关于ios - 找不到 React Native RTCAnimation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48455820/