From a4e1636b536c8cf458608bd41986b08ca8de1579 Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Mon, 20 May 2019 12:35:53 +0300 Subject: [PATCH] workaround for invalid ZIP download --- xcode/commonFastfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index e514031..904388a 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -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(