Post

Replies

Boosts

Views

Activity

Matter API names (renamed)
Hi, The WWDC2021 Video Add support for Matter in your smart home app has a bunch of code examples referencing APIs that are no longer present or deprecated, e.g. this one. Unfortunately the documentation doesn't give any hint on the replacement APIs. Most of them are to be found in HMMatter* objects. But in the video at 14:27 an API for CHIPDeviceController is shown. Unfortunately that one cannot be found anymore. Does anybody know how to achieve the described task (managing state and control of a matter accessory)
1
0
2.2k
Jun ’22
Segmentation fault 11 when implementing WKScriptMessageHandlerWithReply
Hi, I'm trying to implement the async handler of WKScriptMessageHandlerWithReply -> see yellow box in this reference. This is the method signature: func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) async -> (Any?, String?) But I end up with a Segmentation fault: 11 compilation error. I'm compiling with Xcode 13.4.1 (13F100). Did anybody successfully use this API or now a solution to fix it?
1
0
1.4k
Jun ’22