workaround for invalid ZIP download

This commit is contained in:
Ivan Smolin 2019-05-20 12:35:53 +03:00
parent f854e7b0a9
commit a4e1636b53
1 changed files with 7 additions and 1 deletions

View File

@ -10,7 +10,13 @@ private_lane :installDependencies do |options|
end
if File.exists? "../Cartfile"
carthage(command: "bootstrap", platform: "iOS")
begin
carthage(command: "bootstrap", platform: "iOS")
rescue
# workaround for https://github.com/Carthage/Carthage/issues/2298
sh("rm -rf ~/Library/Caches/org.carthage.CarthageKit")
carthage(command: "update", platform: "iOS")
end
end
cocoapods(