Merge pull request #109 from TouchInstinct/build_fix/carthage_invalid_download

workaround for invalid ZIP download
This commit is contained in:
Ivan Smolin 2019-05-20 14:15:54 +03:00 committed by GitHub
commit 72f74326b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(