我克隆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吗?



代替

pod "Yoga", :path => "../node_modules/react-native/ReactCommon/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 herein this issue的副作用

将磁盘更改为区分大小写后,我发现它出现在我正在工作的项目中。
CocoaPods似乎没有将Yoga项目命名为

恢复磁盘(至少在本地)修复了该问题。

看到这个patch for example

08-27 17:37