使用带Fastlane的Slather

J队

我正在尝试使用带Fastlane的Slather。

我的项目宝石文件

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

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

缺少宝石“ slather”,请在本地Gemfile中添加以下内容:

将'gem“ slather”'添加到您的Gemfile中,然后重新启动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依赖项)

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章