CocoaPods could not find compatible versions for pod “ReactCommon/jscallinvoker”:

倾然丶 夕夏残阳落幕 提交于 2020-05-25 08:55:31

问题


I just updated to RN v0.62 and running app on iOS gives me following error

!] 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`)`.

I deleted all node_modules and did npm i. I also did pod install in iOS directory but the issue persists. I also did pod repo update.


回答1:


So I figure it out

Replace following line in your Podfile

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

with

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



回答2:


I think jscallinvoker version is deprecated try to replacing

jscallinvoker 

to

callinvoker


来源:https://stackoverflow.com/questions/60880105/cocoapods-could-not-find-compatible-versions-for-pod-reactcommon-jscallinvoker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!