Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run Fastlane action in a subfolder

Tags:

ios

fastlane

I'm using Fastlaneto build my iOS project and I'm using the Carthage action

The problem is that I have several iOS projects in different subfolders so I need to run the carthage(command: "bootstrap") in that subfolder.

I tried changing to the directory where the project is but it does not work

lane :test do
    Dir.chdir("../MyProject") do
        carthage(command: "update")
    end
end

How can I achieve this?

like image 371
Jan Avatar asked Sep 01 '16 06:09

Jan


1 Answers

I ended up just calling a script in the subfolder:

lane :build do
    Dir.chdir("../MySubdir") do
        sh "carthage bootstrap --platform iOS"
    end
end
like image 135
Jan Avatar answered Oct 10 '22 08:10

Jan