From fbc71e057cb2aa27c00901354baa01354ef9f624 Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Wed, 22 May 2019 19:24:53 +0300 Subject: [PATCH] fix keychain existence check (expand relative path for ruby) --- xcode/commonFastfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index 904388a..ffec91d 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -178,7 +178,8 @@ private_lane :openKeychain do |options| if is_ci? # workaround to avoid duplication problem # https://apple.stackexchange.com/questions/350633/multiple-duplicate-keychain-dbs-that-dont-get-cleaned-up - keychain_exists = File.exists?("~/Library/Keychains/#{options[:keychain_name]}.keychain-db") + keychain_path = File.expand_path("~/Library/Keychains/#{options[:keychain_name]}.keychain") + keychain_exists = File.exist?("#{keychain_path}-db") || File.exist?(keychain_path) create_keychain( name: options[:keychain_name],