From 928efd718622b5c8c97e91e9e90f259862548148 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Mon, 28 Oct 2024 16:04:20 +0100 Subject: [PATCH] [hotfix][darwin-framework-tool] Add missing OTA delegate for per controller storage (#36269) --- .../commands/common/CHIPCommandBridge.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.mm b/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.mm index ee21248594a7a4..55df92f8b98a11 100644 --- a/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.mm +++ b/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.mm @@ -185,6 +185,10 @@ intermediateCertificate:nil rootCertificate:certificateIssuer.rootCertificate]; [params setOperationalCertificateIssuer:certificateIssuer queue:controllerStorageQueue]; + + __auto_type * otaDelegateQueue = dispatch_queue_create("com.chip.ota", DISPATCH_QUEUE_SERIAL_WITH_AUTORELEASE_POOL); + [params setOTAProviderDelegate:mOTADelegate queue:otaDelegateQueue]; + params.productAttestationAuthorityCertificates = productAttestationAuthorityCertificates; __auto_type * controller = [[MTRDeviceController alloc] initWithParameters:params error:&error];