CocoaPods не может найти совместимые версии для модуля "ReactCommon / jscallinvoker": - PullRequest
42 голосов
/ 27 марта 2020

Я только что обновился до 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. Я также установил pod в каталог iOS, но проблема остается. Я также сделал обновление под репо.

Ответы [ 2 ]

135 голосов
/ 27 марта 2020

Так что я понял это

Замените следующую строку в вашем Podfile

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

на

pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon"
17 голосов
/ 28 марта 2020

Я думаю jscallinvoker версия устарела, попробуйте заменить

jscallinvoker 

на

callinvoker
...