ios - 找不到 React Native RTCAnimation

标签 ios git react-native cocoapods

我克隆 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 herein 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 not

Revert the disk fixed (at least locally) the issue.

查看此 patch for example .

关于ios - 找不到 React Native RTCAnimation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48455820/

相关文章:

Git 提示和技巧 : Display Branch on Command Prompt not working and created side effects of git branch function not working and many others

node.js - 如何使用 google oauth token 在 Node Js REST api 中对用户进行签名

reactjs - React-native - Expo,在 Twitter 上分享

ios - IBOutlet 未连接到 uitableviewcell

ios - 如何在 TableView 中快速设置新对象?

git checkout 标签,git pull 在分支中失败

javascript - 当使用react-native-router-flux和react-redux时, Prop 没有被传递到组件中?

iphone - iOS:在 MKMapView 上绘制文本

ios - 通过 FaSTLane "the server responded with status 404"分发 Firebase 应用程序

ios - firebase3在Swift中的集成面临问题