gpt4 book ai didi

rubygems - 使用带有 FaSTLane 的 Slather

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

我正在尝试使用 Slather w/FaSTLane。

我的项目 Gem 文件

source "https://rubygems.org"

gem "fastlane"
gem "slather"

我的文件

platform :ios do
desc "Run unit tests"
lane :tests do
scan(workspace: "Home.xcworkspace", device: "iPhone 6s", scheme: "Home", code_coverage: true)

slather(
output_directory: "fastlane/html",
workspace: "Home.xcworkspace",
html: true,
scheme: "Home",
proj: "Home.xcodeproj",
ignore: [ "R.generated.swift", "Pods/*"],
verbose: true,
show: true
)
end
end

运行时,运行我的测试后失败,并显示以下消息

Missing gem 'slather', please add the following to your local Gemfile:

Add 'gem "slather"' to your Gemfile and restart fastlane

如果我运行 gem install slather 我会得到

Successfully installed slather-2.4.7
Parsing documentation for slather-2.4.7
Done installing documentation for slather after 0 seconds
1 gem installed

最佳答案

您必须使用bundle exec faSTLane ...,在您的情况下是bundle exec faSTLane testsGemfile 才能生效。 (确保您已运行 bundle update 以实际安装 Gemfile 的依赖项)

关于rubygems - 使用带有 FaSTLane 的 Slather,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55888420/

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