From a1d7db3ad052780c21511de53ccd7081835bd8bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20=C3=85berg?= Date: Wed, 30 Apr 2025 16:27:51 +0200 Subject: [PATCH] Use a key/string based approach to circument compiling issues --- .../CredentialProviderViewController.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/desktop/macos/autofill-extension/CredentialProviderViewController.swift b/apps/desktop/macos/autofill-extension/CredentialProviderViewController.swift index 5befed88563..50d79ba7238 100644 --- a/apps/desktop/macos/autofill-extension/CredentialProviderViewController.swift +++ b/apps/desktop/macos/autofill-extension/CredentialProviderViewController.swift @@ -302,8 +302,12 @@ class CredentialProviderViewController: ASCredentialProviderViewController { // Convert excluded credentials to an array of credential IDs var excludedCredentialIds: [Data] = [] if #available(macOSApplicationExtension 15.0, *) { - if let excludedCreds = request.excludedCredentials { - excludedCredentialIds = excludedCreds.map { $0.credentialID } + // Use a runtime check approach that doesn't reference the property directly + let key = "excludedCredentials" + if let value = (request as AnyObject).value(forKey: key) { + if let excludedCreds = value as? [ASAuthorizationPlatformPublicKeyCredentialDescriptor] { + excludedCredentialIds = excludedCreds.map { $0.credentialID } + } } }