ruby 在gem文件中列出的任何gem源或vendor/cache中缓存的gem中找不到gem“xcode-install

shstlldc  于 2023-01-16  发布在  Ruby
关注(0)|答案(1)|浏览(192)

当我使用这个命令来运行fastlane:

bundle exec fastlane beta

显示错误:

~/Documents/GitHub/cruise-open/ios on  main! ⌚ 14:59:47
$ bundle exec fastlane beta                                                                                                      ‹ruby-3.0.0›
Could not find gem 'xcode-install' in any of the gem sources listed in your Gemfile or in gems cached in vendor/cache.
Run `bundle install` to install missing gems.
(base)

然后我安装xcode-install如下:

$ gem install xcode-install                                                                                                      ‹ruby-3.0.0›
Fetching xcode-install-2.6.8.gem
Successfully installed xcode-install-2.6.8
Parsing documentation for xcode-install-2.6.8
Installing ri documentation for xcode-install-2.6.8
Done installing documentation for xcode-install after 0 seconds
1 gem installed
(base)

仍然无法修复此问题。我应该如何修复它?

i7uq4tfw

i7uq4tfw1#

在您的宝石文件中,您需要添加以下行:

gem "xcode-install"

就在

gem "fastlane"

再次运行快车道命令。

相关问题