HMErrorDomain code=76 always occurs when using MatterSupport api

Hi,

I wanted to use MatterAddDeviceRequest api in MatterSupport. When I called api, system pop-up shows up and then right after tapping 'Add to @' button, pop-up always shows HMErrorDomain 76 error.

I found this code in HomeKit.HMError

case keychainSyncNotEnabled = 76

I wonder that enabling keychain sync is mandatory to use MatterAddDeviceRequest api? Or could you tell me why this error always occurs?

Thanks!

Im trying to get the MatterAddDeviceRequest running but unfortunately I get the following error:

2022-12-19 14:16:51.195674+0100 MatterTest1[26746:2094629] [MatterAddDeviceRequest] Local browse failed; unable to start an add device operation (error: -65555: NoAuth)
--- failed The operation couldn’t be completed. (Network.NWError error 1.)

I probably have not settled the Bonjour permissions in the Info.plist correctly. But I cannot figure our which bonjour type I should use.

@agiokas you can try to add this to your info.plist file. It gives app access to local network communication.

<key>NSLocalNetworkUsageDescription</key>
<string>Network usage is required for macOS/iOS communication</string>
<key>NSBonjourServices</key>
<array>       
   <string>_matter._tcp</string>
   <string>_matterc._udp</string>
   <string>_matterd._udp</string>
</array>

I have found it here

HMErrorDomain code=76 always occurs when using MatterSupport api
 
 
Q