[英]Can't install fastlane on Mac OS Catalina
As per the steps given in fastlane docs , I am not able to install fastlane.根据 fastlane docs 中给出的步骤,我无法安装 fastlane。
After running brew cask install fastlane
, I get this pop up:运行brew cask install fastlane
,我会弹出这个:
If I try to run from gem with sudo gem install fastlane
, I get this error:如果我尝试使用sudo gem install fastlane
从 gem 运行,我会收到此错误:
What I see is the ruby.h file is missing from the directory.我看到的是目录中缺少 ruby.h 文件。 As it says in the error, I need to install the ruby-dev environment separately.正如错误中所说,我需要单独安装 ruby-dev 环境。 But I could not find how to do that.但我找不到如何做到这一点。 I saw apt-get
commands for this, but then what about the ruby installed via brew?我看到了apt-get
命令,但是通过 brew 安装的 ruby 呢?
ruby -v: ruby 2.6.3p62红宝石 -v:红宝石 2.6.3p62
brew -v: Homebrew 2.1.10 brew -v: 自制 2.1.10
brew upgrade ruby: ruby 2.6.3 already installed brew upgrade ruby: ruby 2.6.3 已经安装
Run this to disable Gatekeeper:运行此命令以禁用 Gatekeeper:
sudo spctl --master-disable
Then install and run fastlane.然后安装并运行 fastlane。 When done, run this to re-enable Gatekeeper:完成后,运行此命令以重新启用 Gatekeeper:
sudo spctl --master-enable
It will remember that you have permitted the application after re-enabling Gatekeeper and you will not have to run these commands every time you use it.它会记住您在重新启用 Gatekeeper 后已允许该应用程序,并且您不必每次使用它时都运行这些命令。
根据https://github.com/fastlane/fastlane/issues/15183这是一个没有人可以解决的常见问题。
如果您无法更新 fastlane 版本,请尝试
sudo gem install -n /usr/local/bin fastlane
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.