MatterSupport framework MatterAddDeviceRequest Fails

[MatterAddDeviceRequest] Local browse failed; unable to start an add device operation (error: -65555: NoAuth) Failed to set up a device with error: -65555: NoAuth

Code I am using -

       let request = MatterAddDeviceRequest(         topology: .init(ecosystemName: "Test Echo", homes: [           .init(displayName: "Test Home 1"),         ]), setupPayload: nil, showing: .allDevices       )

      do {         try await request.perform()         print("Successfully set up a device!")       } catch {         print("Failed to set up a device with error: (error)")       }

This could be due to lack of permissions in your info.plist You need to add:

<key>NSLocalNetworkUsageDescription</key>
<string>Network usage is required for Matter discovery</string>
<key>NSBonjourServices</key>
<array>       
   <string>_matter._tcp</string>
   <string>_matterc._udp</string>
   <string>_matterd._udp</string>
</array>
MatterSupport framework MatterAddDeviceRequest Fails
 
 
Q