From d1faa6cdfe8946cb496716abf636d4e20c620f10 Mon Sep 17 00:00:00 2001 From: Vitaliy Salnikov Date: Thu, 21 May 2020 12:41:41 +0300 Subject: [PATCH] Continue build on badge generation fail --- xcode/commonFastfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index ae4bac6..382a448 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -89,10 +89,14 @@ private_lane :addShield do |options| buildNumber = options[:buildNumber] buildDescription = options[:xcconfig_name].scan(/\p{Upper}/)[1..2].join - add_badge( - shield: "#{buildDescription}-#{buildNumber}-green", - no_badge: true - ) + begin + add_badge( + shield: "#{buildDescription}-#{buildNumber}-green", + no_badge: true + ) + rescue => error + UI.error(error) + end end private_lane :buildConfiguration do |options|