npx react-native doctor截图:

正如你所看到的,iOS都是绿色的滴答。我在终端选项卡中使用npm start来运行本机地铁服务器。然后我打开另一个终端,npm run ios是的,模拟器马上打开,但是我得到一个长的错误:https://pastebin.com/6bFTMDTr
我cd ios然后pod install得到了这个:

有人知道吗?
发布于 2022-12-04 02:56:35
您是否尝试过手动安装荚依赖项?
$ cd iOS && pod
upd。看来你还没安装Ruby
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install ruby
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile安装完毕后,一个看门人依赖于
$ brew update
$ brew install watchmanupd2。
1) brew reinstall cocoapods(将出现关于链接的错误消息)
2) brew link --overwrite cocoapods(修复链接)
https://stackoverflow.com/questions/74672507
复制相似问题