From 6ceefae04e85210883b33a7e8d096459cadb37a0 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Mon, 28 Oct 2024 15:45:09 +0100 Subject: [PATCH] [hotfix][darwin-framework-tool] Add missing OTA delegate for per controller storage --- .../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 85ce8d8935bec0..95d328bae6ec96 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];