From 525c15bd89509dd8e41739cbf482251fea5358cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20K=C3=BChne?= Date: Tue, 12 Nov 2024 13:44:46 +0100 Subject: [PATCH] Add creation of temp keychain --- fastlane/Fastfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 2d9de098..39227318 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -47,6 +47,10 @@ platform :ios do desc "[CI] Default build configuration" lane :build do + team_id = CredentialsManager::AppfileConfig.try_fetch_value(:team_id) + keychain_name = "signing" + keychain_password = "temp" + ########################################## # Environment Setup ########################################## @@ -59,6 +63,18 @@ platform :ios do value: ENV['BUILD_NUMBER'] ) + delete_keychain( + name: keychain_name + ) if File.exist? File.expand_path("~/Library/Keychains/#{keychain_name}-db") + + create_keychain( + name: keychain_name, + password: keychain_password, + default_keychain: true, + unlock: true, + timeout: 3600 + ) + ########################################## # Configure Code Signing via Match ##########################################