CocoaPods找不到Pod“ ReactCommon / callinvoker”的兼容版本

时间:2020-10-03 00:20:48

标签: ios react-native cocoapods expo

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

[!] 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.

3 个答案:

答案 0 :(得分:0)

我从react-native 0.63.3降级到react-native 0.62.2,这解决了我的可可豆荚问题。

要降级本机,请根据您的软件包管理器使用以下命令之一。

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

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

Proper mechanism to downgrade react-native

答案 1 :(得分:0)

在ios文件夹中打开podfile

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

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

答案 2 :(得分:0)

在ios文件夹中打开podfile

并替换

pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon"
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"

pod 'React-callinvoker', :path => "../node_modules/react-native/ReactCommon/callinvoker"
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"