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/