Skip to content

Commit

Permalink
Unlock keychain without timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored Feb 9, 2024
1 parent f393c38 commit 786333d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
def ensure_temp_keychain(name)
delete_keychain(
name: name
) if File.exist? File.expand_path("~/Library/Keychains/#{name}-db")
create_keychain(
name: name,
password: 'temppassword',
unlock: true,
timeout: false
)
end

platform :ios do
lane :setup_signing do |options|
signing_type = options[:type] # "development", "appstore"
app_identifier = options[:app_identifier] # "ch.opengis.qfield", "ch.opengis.qfield-dev"

setup_ci if is_ci

ensure_temp_keychain 'fastlane_enterprise'
match(
type: signing_type,
app_identifier: app_identifier
app_identifier: app_identifier,
keychain_name: 'fastlane_enterprise'
)
end

Expand Down

0 comments on commit 786333d

Please sign in to comment.