gpt4 book ai didi

ruby - bundler :无法加载命令:faSTLane

转载 作者:行者123 更新时间:2023-12-04 11:11:50 24 4
gpt4 key购买 nike

这是我与 Jenkins 一起运行时 faSTLane env 命令的输出。
SDK 和 faSTLane 设置在 Docker 容器中。

[09:11:28]: [33mGet started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile[0m
`/` is not writable.
Bundler will use `/tmp/bundler20200228-96-c24ujz96' as your home directory temporarily.

/usr/lib/ruby/2.5.0/fileutils.rb:232:in `mkdir': [31m[!] Permission denied @ dir_s_mkdir - /.fastlane[0m (Errno::EACCES)
from /usr/lib/ruby/2.5.0/fileutils.rb:232:in `fu_mkdir'
from /usr/lib/ruby/2.5.0/fileutils.rb:210:in `block (2 levels) in mkdir_p'
from /usr/lib/ruby/2.5.0/fileutils.rb:208:in `reverse_each'
from /usr/lib/ruby/2.5.0/fileutils.rb:208:in `block in mkdir_p'
from /usr/lib/ruby/2.5.0/fileutils.rb:193:in `each'
from /usr/lib/ruby/2.5.0/fileutils.rb:193:in `mkdir_p'
from /var/lib/gems/2.5.0/gems/fastlane-2.141.0/fastlane_core/lib/fastlane_core/module.rb:28:in `fastlane_user_dir'
from /var/lib/gems/2.5.0/gems/fastlane-2.141.0/fastlane_core/lib/fastlane_core/analytics/analytics_session.rb:58:in `did_show_message?'
from /var/lib/gems/2.5.0/gems/fastlane-2.141.0/fastlane_core/lib/fastlane_core/analytics/analytics_session.rb:22:in `action_launched'
from /var/lib/gems/2.5.0/gems/fastlane-2.141.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:74:in `run!'
from /var/lib/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
from /var/lib/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/commands_generator.rb:349:in `run'
from /var/lib/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
from /var/lib/gems/2.5.0/gems/fastlane-2.141.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
from /var/lib/gems/2.5.0/gems/fastlane-2.141.0/bin/fastlane:23:in `<top (required)>'
from /usr/local/bin/fastlane:23:in `load'
from /usr/local/bin/fastlane:23:in `<main>'

最佳答案

尝试在 Dockerfile 中设置以下环境变量:

GEM_HOME=/bundle

ENV BUNDLE_PATH $GEM_HOME
ENV BUNDLE_APP_CONFIG=$BUNDLE_PATH \
BUNDLE_BIN=$BUNDLE_PATH/bin
ENV PATH $BUNDLE_BIN:$PATH
然后当你运行 bundle它应该使用正确的目录进行安装。

关于ruby - bundler :无法加载命令:faSTLane,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60110919/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com