fix(mobile): fix keychain setup - add all WWDR certs and set partition after match import

This commit is contained in:
Alex
2026-01-05 22:56:55 -06:00
parent b24f1b31fb
commit fe8cc89e44
2 changed files with 21 additions and 10 deletions
+10 -2
View File
@@ -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