From 9cf5bee63c365d4890720233abc2b8fdf680dd34 Mon Sep 17 00:00:00 2001 From: Jiacheng Jiang Date: Mon, 3 Apr 2023 14:19:29 +0800 Subject: [PATCH] require create --- fastlane/Fastfile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 74e23e6..0d7d73b 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -6,20 +6,18 @@ platform :ios do decode_file keychain_password = SecureRandom.uuid - begin - create_keychain( - name: 'ios-build.keychain', - password: keychain_password, - default_keychain: true, - unlock: true, - timeout: 3600 - ) + delete_keychain(name: 'ios-build.keychain') rescue => ex UI.error(ex) - ensure - delete_keychain(name: 'ios-build.keychain') end + create_keychain( + name: 'ios-build.keychain', + password: keychain_password, + default_keychain: true, + unlock: true, + timeout: 3600 + ) if @is_split_cer import_certificate(