diff --git a/fastlane/Fastfile b/fastlane/Fastfile index c8e74e2..397c660 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -14,18 +14,17 @@ platform :ios do end 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(