HomeKit Develop:iOS 10中不推荐使用addUser功能。如何添加用户?

时间:2017-06-14 23:30:20

标签: ios homekit

我想启用我的Homekit App添加其他用户。我虽然可以使用函数addUser但是根据链接https://developer.apple.com/documentation/homekit/hmhome/1620213-adduser

一些与用户相关的功能已被弃用。 addUser有替代功能吗?如何在iOS 10中的Homekit应用程序中添加用户?

感谢!!!

enter image description here

错误说明为Optional("Operation is not supported.")

1 个答案:

答案 0 :(得分:0)

以下是您可以使用的最新功能。看起来他们真的没有用任何东西取而代之。我是因为安全原因而假设的。

用户现在必须从其HomeKit添加其他用户。开发人员已经没有权利了。

https://developer.apple.com/documentation/homekit/hmhome