mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix(mobile): fix keychain setup - add all WWDR certs and set partition after match import
This commit is contained in:
@@ -48,13 +48,21 @@ platform :ios do
|
||||
|
||||
# Helper method to sync certificates and profiles using match
|
||||
def sync_code_signing(app_identifiers:, readonly: true)
|
||||
keychain = ENV["KEYCHAIN_NAME"] || "login.keychain"
|
||||
keychain_password = ENV["KEYCHAIN_PASSWORD"] || ""
|
||||
|
||||
match(
|
||||
type: "appstore",
|
||||
app_identifier: app_identifiers,
|
||||
readonly: readonly,
|
||||
keychain_name: ENV["KEYCHAIN_NAME"] || "login.keychain",
|
||||
keychain_password: ENV["KEYCHAIN_PASSWORD"] || ""
|
||||
keychain_name: keychain,
|
||||
keychain_password: keychain_password
|
||||
)
|
||||
|
||||
# Set key partition list after match imports certificates (required for CI)
|
||||
if ENV["CI"] && !keychain_password.empty?
|
||||
sh("security set-key-partition-list -S apple-tool:,apple: -s -k \"#{keychain_password}\" #{keychain} 2>/dev/null || true")
|
||||
end
|
||||
end
|
||||
|
||||
# Helper method to get version from pubspec.yaml
|
||||
|
||||
Reference in New Issue
Block a user