Fastlane,AppleScript 可以 运行 作为通道中的一个步骤吗?

Fastlane, can an AppleScript be ran as a step in a lane?

我正在尝试通过 AppleScript 在我的快速通道中执行一些步骤。我找不到任何关于此的文档。

我知道你可以 运行 shell 来自 fastlane 的脚本,但我不确定你是否可以 运行 AppleScripts

实现此目的的一种方法是创建一个 shell 脚本来执行 AppleScript:

<root>/test.sh:

#!/bin/bash

osascript <<EOD
    tell application "Google Chrome"
        activate
    end tell
EOD

<root>/fastlane/Fastfile:

platform :ios do
    lane :test do
        sh('../test.sh')
    end
end

和运行它使用bundle exec fastlane test