最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Pod install error after upgrading to React Native 0.63.0 - Stack Overflow

programmeradmin2浏览0评论

I was using React Native version 0.62.2 and now I upgrade to version 0.63.0 and after running npx pod-install for installing Pod packages I get this error:

CocoaPods could not find patible versions for pod “ReactCommon/callinvoker”:

I was using React Native version 0.62.2 and now I upgrade to version 0.63.0 and after running npx pod-install for installing Pod packages I get this error:

CocoaPods could not find patible versions for pod “ReactCommon/callinvoker”:

Share Improve this question asked Jul 16, 2020 at 9:16 AmerllicAAmerllicA 32.6k17 gold badges143 silver badges167 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 12

Actually, I just remove the Podfile.lock and delete whole the Podfile and add the new content from a fresh installed React Native project on the latest version and it means its content should be:

require_relative '../node_modules/@react-native-munity/cli-platform-ios/native_modules'
require_relative '../node_modules/react-native/scripts/react_native_pods'

platform :ios, '10.0'

target '[YourProjectName]' do
  config = use_native_modules!
  use_react_native!(:path => config["reactNativePath"])

  target '[YourProjectName]Tests' do
    inherit! :plete
    # Pods for testing
  end

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable these next few lines.
  use_flipper!
  post_install do |installer|
    flipper_post_install(installer)
  end
end

target '[YourProjectName]-tvOS' do
  # Pods for [YourProjectName]-tvOS

  target '[YourProjectName]-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end
end

Note: it is obvious you should replace your project name with [YourProjectName].

Hint: if you use manual linking, please unlink all of them, I have critical issues with manual linking of react-native-vector-icons

After it, run npx pod-install mand on the root of your project and everything will back on track.

You should remove Podfile.lock and Run this code on the terminal when in ios folder

rm -rf ./*.xcworkspace  && rm -rf ./pods && pod install
发布评论

评论列表(0)

  1. 暂无评论