Merge pull request #110 from TouchInstinct/fix/check_keychain_existence

fix keychain existence check (expand relative path for ruby)
This commit is contained in:
Ivan Smolin 2019-05-24 12:21:56 +03:00 committed by GitHub
commit 9e9a8ba11c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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],