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


42

我刚刚更新到RN v0.62,并且在iOS上运行应用程序给我以下错误

!] CocoaPods could not find compatible versions for pod "ReactCommon/jscallinvoker":
  In snapshot (Podfile.lock):
    ReactCommon/jscallinvoker (from `../node_modules/react-native/ReactCommon`)

  In Podfile:
    ReactCommon/jscallinvoker (from `../node_modules/react-native/ReactCommon`)

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

我删除了所有的node_modules并做了npm i。我还在iOS目录中安装了Pod,但问题仍然存在。我也做了pod repo更新。

Answers:


133

所以我想通了

替换Podfile中的以下行

pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"

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

2
这对我有用!
卡卡扬

非常适合我
Kasra

17

我认为jscallinvoker版本已过时,请尝试替换

jscallinvoker 

callinvoker
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.