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?
I ended up just calling a script in the subfolder:
lane :build do
Dir.chdir("../MySubdir") do
sh "carthage bootstrap --platform iOS"
end
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With