【发布时间】:2015-11-04 14:54:16
【问题描述】:
在以下Fastfile 上运行fastlane build_and_rename,
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
导致在./fastlane 文件夹中创建where_am_i.txt。不在运行fastlane 的文件夹中。
显然我可以更改所有脚本以包含 ../,但想知道是否有办法让 fastlane 在 xCode 的根项目中运行 sh 操作?
【问题讨论】: