4
运行以下Fastfile
fastlane build_and_rename
运行SH行动,FastLanes。在Xcode项目的根文件夹
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
动作?