首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >CocoaPods找不到pod "ReactCommon/callinvoker“的兼容版本

CocoaPods找不到pod "ReactCommon/callinvoker“的兼容版本
EN

Stack Overflow用户
提问于 2020-10-03 08:20:48
回答 3查看 349关注 0票数 1

我已经采取了几个步骤来解决这个问题,包括删除node_modules,删除pod.lock,运行yarn cache clean,运行npx react-native-clean-project,运行pod install --repo-update ...但到目前为止,一切都没有奏效。这是一个世博会裸露工作流项目。

代码语言:javascript
运行
复制
[!] CocoaPods could not find compatible versions for pod "ReactCommon/callinvoker":
  In Podfile:
    ReactCommon/callinvoker (from `../node_modules/react-native/ReactCommon`)

None of your spec sources contain a spec satisfying the dependency: `ReactCommon/callinvoker (from `../node_modules/react-native/ReactCommon`)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.
EN

回答 3

Stack Overflow用户

发布于 2020-10-15 04:03:54

要降级react-native,请根据您的包管理器使用以下命令之一。

npm install react-native@x.x.xyarn add react-native@x.x.x

有关如何降级react-native的更多信息,请查看下面的链接,希望它能有所帮助!

Proper mechanism to downgrade react-native

票数 0
EN

Stack Overflow用户

发布于 2020-10-15 04:07:57

打开ios文件夹中的podfile

并替换pod 'React-callinvoker',:path => "#{rnPrefix}/ReactCommon“

rnPrefix 'React-callinvoker',:path pod“#{pod}/ReactCommon/callinvoker”

票数 0
EN

Stack Overflow用户

发布于 2021-02-25 16:35:47

在ios文件夹中打开podfile

并替换

代码语言:javascript
运行
复制
pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon"
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"

代码语言:javascript
运行
复制
pod 'React-callinvoker', :path => "../node_modules/react-native/ReactCommon/callinvoker"
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64179570

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档