fastlane build_and_rename
在以下运行Fastfile
,
lane :build_and_rename do
sigh
gym(output_directory: "./Build/")
sh "mv ./Build/MY-APP.ipa ./Build/nicely_name.ipa"
end
导致以下错误ln: ./Build/MY-APP.ipa: No such file or directory
。
测试表明,FastLane 的sh
动作在./fastlane
目录中运行。例如,fastlane test_sh
对于以下Fastfile
lane :test_sh do
sh "touch where_am_i.txt"
end
结果在文件夹中where_am_i.txt
创建。./fastlane
不在运行的文件夹fastlane
中。
显然我可以更改所有脚本以包含../
但想知道是否有办法在 xCode 的根项目中fastlane
执行运行操作?sh