最佳答案
我刚刚更新到 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 _ module 并且做了 npm i。我还在 iOS 目录中做了 pod install,但问题仍然存在。我还做了豆荚回收更新。