From d9d0a6034f20c4997234296b1f3e489af2abd5f8 Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Thu, 23 Jan 2020 12:55:44 +0300 Subject: [PATCH] fix carthage retry --- xcode/commonFastfile | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index 892396b..0258809 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -36,15 +36,13 @@ private_lane :installDependencies do |options| end end - carthage_install.call - - # begin - - # rescue - # # workaround for https://github.com/Carthage/Carthage/issues/2298 - # sh("rm -rf ~/Library/Caches/org.carthage.CarthageKit") - # carthage_install() - # end + begin + carthage_install.call + rescue + # workaround for https://github.com/Carthage/Carthage/issues/2298 + sh("rm -rf ~/Library/Caches/org.carthage.CarthageKit") + carthage_install.call + end end end