从 Ruby 文件调用 fastlane 函数

Call fastlane function from Ruby file

这是一个很简单的问题。我需要从外部 Ruby 文件调用 fastlane 通道。这可能吗?如果可以,我该怎么做?

您可以这样做,但是请确保您没有使用私有 API。

require 'fastlane'
Fastlane::Runner.new.execute("beta")