IOS:您的Ruby版本是2.6.8,但您的Gemfile指定了2.7.5

已经在macOS和npm版本中安装了

  • node@16(v16.18.0):8.19.2 .
  • macOS版本:12.6
  • xCode版本:14.0.1

设置react-native环境使用下面提到的步骤:

自制软件安装(版本:3.6.7)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

watchman安装程序(版本:2022年10月24日)

brew install watchman

安装Ruby(版本:2.6.8p205)

brew install ruby

安装CocoaPods(*gem版本:3.0.3.1)

sudo gem install cocoapods

固定位置的CocoaPod(pod版本:1.11.3)

sudo gem install -n /usr/local/bin ffi cocoapods

使用

npx react-native init AwesomeProject

创建react-native应用程序,rjYour Ruby version is
2.6.8, but your Gemfile specified 2.7.5错误。请检查它,并帮助我建议解决的方法。

在这里插入图片描述

posted @ 2025-05-08 16:22  Dy大叔  阅读(30)  评论(0)    收藏  举报