我正在尝试使用带有快速通道的Slather。
我的项目 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
但是运行时,运行我的测试后失败,并显示以下消息
缺少宝石"涂鸦",请将以下内容添加到您的本地宝石文件中:
将"宝石"涂鸦"添加到您的宝石文件并重新启动快车道
如果我跑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 的依赖项(