Doesn't work the Conntected Home Over IP Support class

let setupManager = HMAccessorySetupManager()
let homeTopology = HMCHIPServiceTopology(homes: homes)
setupManager.addAndSetUpAccessories(for: homeTopology, completionHandler: { error in
   if let error = error {
      print(error) 
      }
})

when calling the function 'setupManager.addAndSetUpAccessories(for: homeTopology)', an error log occurs.

Error Domain=HMErrorDomain Code=48 "Operation is not supported." UserInfo={NSLocalizedDescription=Operation is not supported.}

Any ideas what could cause this? Is this function not working yet because it is currently beta? Or, did i use the function wrong?

  • I'm encountering the same issue. iOS 15 beta, tvOS 15 beta, and matter/chip profiles are installed on both devices.

    Failed to add and set up accessories for topology: Error Domain=HMErrorDomain Code=48 "(null)"

  • I just tried out iOS beta 4 and XCode beta 4 and this is no longer an issue. Thank you for the fix!

Add a Comment

Replies

After installing the iOS beta, you need to enable matter/CHIP support. Check the PDF referenced in https://developer.apple.com/documentation/homekit?changes=latest_minor&language=objc for details.

  • Thank you very much for your answer! but i'm already check pdf reference. i finished ios beta(15) installing, tv os beta(15) installing and matter/chip profile installing. but doesn't work addAndSetUpAccessories function. i checked console log, Cannot add and set up accessories for topology because CHIP multiple ecosystem is not enabled. Any ideas what could cause this?

  • ms1203 - try it again, the latest beta version works for me and I encountered the same issue as you before.

Add a Comment