我已经采取了几个步骤来解决这个问题,包括删除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.
发布于 2020-10-15 04:03:54
要降级react-native,请根据您的包管理器使用以下命令之一。
npm install react-native@x.x.x
或yarn add react-native@x.x.x
有关如何降级react-native的更多信息,请查看下面的链接,希望它能有所帮助!
发布于 2020-10-15 04:07:57
打开ios文件夹中的podfile
并替换pod 'React-callinvoker',:path => "#{rnPrefix}/ReactCommon“
至
rnPrefix 'React-callinvoker',:path pod“#{pod}/ReactCommon/callinvoker”
发布于 2021-02-25 16:35:47
在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"
https://stackoverflow.com/questions/64179570
复制相似问题