Skip to content

Commit

Permalink
Add creation of temp keychain
Browse files Browse the repository at this point in the history
  • Loading branch information
magkue committed Nov 12, 2024
1 parent 0fd7e92 commit 525c15b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
##########################################
Expand All @@ -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
##########################################
Expand Down

0 comments on commit 525c15b

Please sign in to comment.