使用带有 Fastlane 的 Slather
Using Slather w/ Fastlane
我正在尝试使用 Slather w/ Fastlane。
我的项目Gem文件
source "https://rubygems.org"
gem "fastlane"
gem "slather"
我的 Fastfile
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
当 运行ning 但是在 运行ning 我的测试后失败并显示以下消息
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 tests
,才能使 Gemfile
生效。 (确保您有 运行 bundle update
以便实际安装 Gemfile 的依赖项)
我正在尝试使用 Slather w/ Fastlane。
我的项目Gem文件
source "https://rubygems.org"
gem "fastlane"
gem "slather"
我的 Fastfile
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
当 运行ning 但是在 运行ning 我的测试后失败并显示以下消息
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 tests
,才能使 Gemfile
生效。 (确保您有 运行 bundle update
以便实际安装 Gemfile 的依赖项)