找不到React Native RTCAnimation

时间:2018-01-26 04:30:04

标签: ios git react-native cocoapods

我克隆git并在ios中运行但RTCAnimation未找到我使用pods代码:

# 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`

1 个答案:

答案 0 :(得分:0)

您可以尝试关注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似乎将瑜伽项目命名为

     

还原固定的磁盘(至少在本地)。

请参阅此patch for example