MatterExtension with class MatterAddDeviceExtensionRequestHandler never called?!

Added the MatterExtension for MatterAddDeviceExtensionRequestHandler as new Target. Everything is automatically generated.

But still only the default MatterAddDevice pickerView is displayed instead of MatterAddDeviceExtension?!

func play() {
    
    Task {
        let homes = [MatterAddDeviceRequest.Home(displayName: "my Home")]
        let topology = MatterAddDeviceRequest.Topology(ecosystemName: "MyEcosystemName", homes: homes)
        
        let request = MatterAddDeviceRequest(topology: topology)
        
        do {
            try await request.perform()
            print("Successfully set up device!")
        } catch {
            print("Failed to set up device with error: \(error)")
        }
    }
}

Entitlements: Matter Allow Setup Payload = YES

.plist is set up:

  • NSLocalNetworkUsageDescription
  • NSBonjourServices:

<array> <string>_matter._tcp</string> <string>_matterc._udp</string> <string>_matterd._udp</string> </array> </plist>

It works fine after all and the classes are overwritten. I accidentally applied print in the extension, which does not log in the Xcode console. But when I log for example: os_log(.default, "Received request to fetch rooms in home: (String(describing: home))"), it is in the console on the Mac under the iPhone tab.

@DonGiovanni What changes have you made to make MatterAddDeviceExtensionRequestHandler commissionDevice be triggered?

MatterExtension with class MatterAddDeviceExtensionRequestHandler never called?!
 
 
Q