无法在 Mac OS Catalina 上安装 fastlane

问题描述 投票:0回答:5

根据 fastlane docs 中给出的步骤,我无法安装 fastlane。

运行

brew cask install fastlane
后,我会弹出以下窗口:

如果我尝试使用

sudo gem install fastlane
从 gem 运行,我会收到此错误:

我看到目录中缺少 ruby.h 文件。正如错误中所说,我需要单独安装 ruby-dev 环境。但我找不到如何做到这一点。我看到了

apt-get
命令,但是通过brew 安装的 ruby 又如何呢?

ruby -v:ruby 2.6.3p62
酿造-v:自制2.1.10
brew 升级 ruby:ruby 2.6.3 已安装

ios ruby-on-rails ruby fastlane macos-catalina
5个回答
2
投票

由于错误表明我们必须将 ruby 作为单独的包安装以进行开发,因此我必须安装

rbenv
,如 ROR's 网站上所示。您可以在此处查看完整的问题和解决方案。


0
投票

运行此命令以禁用网守:

sudo spctl --master-disable

然后安装并运行 fastlane。完成后,运行此命令以重新启用 Gatekeeper:

sudo spctl --master-enable

重新启用 Gatekeeper 后,它会记住您已允许该应用程序,因此您不必每次使用它时都运行这些命令。


0
投票

根据https://github.com/fastlane/fastlane/issues/15183 这是一个常见问题,没有人可以解决。


0
投票

如果您无法更新 fastlane 版本 尝试

sudo gem install -n /usr/local/bin fastlane


0
投票

查看此日志 - 过夜

llvm 花了 201 分钟 | Rust 花了 61 分钟 | Ruby 花了 6 分钟 | Python 花了 9 分钟

========================== 安装 fastlane 的依赖项:mpdecimal、sqlite、[email protected]、llvm、rust、ruby 和terminal-notifier ==> 安装 fastlane 依赖项:mpdecimal ==> ./配置 ==> 制作 ==> 进行安装 🍺 /usr/local/Cellar/mpdecimal/4.0.0:21 个文件,628.7KB,15 秒内构建 ==> 安装 fastlane 依赖项:sqlite ==> ./configure --enable-dynamic-extensions --enable-readline --disable-editline --enable ==> 进行安装 🍺 /usr/local/Cellar/sqlite/3.45.0:11 个文件,4.7MB,在 1 分 20 秒内构建 ==> 安装 fastlane 依赖项:[电子邮件受保护] ==> 修补 ==> 应用 3.11-sysconfig.diff 修补文件 Lib/sysconfig.py Hunk #1 在 96 处成功(偏移 1 线)。 Hunk #2 在 300 处成功(偏移 5 行)。 ==> ./configure --enable-ipv6 --datarootdir=/usr/local/Cellar/[电子邮件受保护]/3.12.1_1/share ==> 制作 ==> make altinstall PYTHONAPPSDIR=/usr/local/Cellar/[电子邮件受保护]/3.12.1_1 ==> makeframeworkinstallextras PYTHONAPPSDIR=/usr/local/Cellar/[电子邮件受保护]/3.12.1_1/shar ==> /usr/local/Cellar/[电子邮件受保护]/3.12.1_1/bin/python3.12 -m venv /private/tmp/pythonA3.1 ==> /private/tmp/pythonA3.12-20240118-69201-h64e8c/Python-3.12.1/whl_build/bin/pip3 安装 ==> /private/tmp/pythonA3.12-20240118-69201-h64e8c/Python-3.12.1/whl_build/bin/pip3 安装 ==> /private/tmp/pythonA3.12-20240118-69201-h64e8c/Python-3.12.1/whl_build/bin/pip3 安装 ==> /private/tmp/pythonA3.12-20240118-69201-h64e8c/Python-3.12.1/whl_build/bin/pip3 轮 ==> /private/tmp/pythonA3.12-20240118-69201-h64e8c/Python-3.12.1/whl_build/bin/pip3 轮 ==>正在下载https://formulae.brew.sh/api/formula.jws.json

==> /usr/local/Cellar/[email protected]/3.12.1_1/bin/python3.12 -Im ensurepip
==> /usr/local/Cellar/[email protected]/3.12.1_1/bin/python3.12 -Im pip install -v --no-index -
🍺  /usr/local/Cellar/[email protected]/3.12.1_1: 8,167 files, 185MB, built in 9 minutes 13 seconds
==> Installing fastlane dependency: llvm
==> Patching
==> Applying 17.x-arm64-opt.patch
patching file llvm/include/llvm/CodeGen/TargetInstrInfo.h
patching file llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
patching file llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
patching file llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
patching file llvm/lib/Target/AArch64/AArch64InstrInfo.h
patching file llvm/test/CodeGen/AArch64/machine-cp-sub-reg.mir
==> cmake -G Ninja .. -DLLVM_ENABLE_PROJECTS=clang;clang-tools-extra;lld;lldb;mlir;polly 
==> cmake --build .
==> cmake --build . --target install
==> /usr/libexec/PlistBuddy -c Add:CFBundleIdentifier string org.llvm.17.0.6 Info.plist
==> /usr/libexec/PlistBuddy -c Add:CompatibilityVersion integer 2 Info.plist
🍺  /usr/local/Cellar/llvm/17.0.6_1: 7,207 files, 1.5GB, built in 201 minutes 9 seconds
==> Installing fastlane dependency: rust
==> Downloading https://formulae.brew.sh/api/formula.jws.json
################################################################################## 100.0%
==> Patching
==> ./install.sh --prefix=/private/tmp/rust-20240118-33755-hqyfis/rustc-1.75.0-src/cargob
==> ./configure --sysconfdir=/usr/local/etc --tools=analysis,cargo,clippy,rustdoc,rust-an
==> make
==> make install
==> Downloading https://formulae.brew.sh/api/formula.jws.json
################################################################################## 100.0%
🍺  /usr/local/Cellar/rust/1.75.0: 39,132 files, 858.6MB, built in 61 minutes 34 seconds
==> Installing fastlane dependency: ruby
==> ./configure --enable-shared --disable-silent-rules --with-sitedir=/usr/local/lib/ruby
==> make
==> make install
==> /usr/local/Cellar/ruby/3.3.0/bin/ruby setup.rb --prefix=/private/tmp/ruby-20240118-15
🍺  /usr/local/Cellar/ruby/3.3.0: 19,656 files, 49.7MB, built in 6 minutes 5 seconds
==> Installing fastlane dependency: terminal-notifier
==> Downloading https://ghcr.io/v2/homebrew/core/terminal-notifier/manifests/2.0.0
Already downloaded: /Users/abdullah/Library/Caches/Homebrew/downloads/c53a2cdc1a8fa72534a1c00445c5d0ddbf51a3afc7bb26f8ac0e2a85e3b17d66--terminal-notifier-2.0.0.bottle_manifest.json
==> Pouring terminal-notifier--2.0.0.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/terminal-notifier/2.0.0: 12 files, 469KB
==> Installing fastlane
==> gem build fastlane.gemspec
==> gem install fastlane-2.219.0.gem --no-document
🍺  /usr/local/Cellar/fastlane/2.219.0_2: 3,847 files, 42.4MB, built in 47 seconds
==> Running `brew cleanup fastlane`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

============================

© www.soinside.com 2019 - 2024. All rights reserved.