faSTLane - 从 faSTLane 参数中获取参数

标签 fastlane fastlane-gym

faSTLane 文件看起来像这样

lane :build do |options|
  scheme = options[:scheme]
  puts scheme
end

但是每当我向其中传递任何值时,puts 的输出都是空白。 我从终端这样调用快速 channel :- faSTLane build options:Release

最佳答案

在上面的示例中,您需要运行: faSTLane build scheme:Release 以按照您的预期输出 Release

options 是参数字典,:scheme 命令中 scheme 之后提供的参数键。

关于faSTLane - 从 faSTLane 参数中获取参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48960262/

相关文章:

ios - 未找到签名证书 “iOS Development” - 使用 bitrise/FaSTLane 匹配构建应用程序版本

ios - FaSTLane:无法使用 "match"命令生成的 p12 文件

xcode - 将环境变量从 faSTLane 传递到 Xcode 构建阶段脚本

ios - faSTLane nuke 是否也删除推送证书

ios - 使用gym创建ipa时FaSTLane不工作

ios - 如何从命令行编译 iOS 项目

ios - FaSTLane - 覆盖输出名称

ios - 如何使用 faSTLane deliver 将 "Beta App Description"提交到 iTunes Connect

ios - FaSTLane 匹配 build adhoc 和 appstore