Posts

Post not yet marked as solved
3 Replies
617 Views
hi there, i've just started digging into developing for HomeKit, so it's quite possible i'm missing something (or this is expected?), but calling addAndSetupAccessories always fails instantly (no UI appears) when running in the simulator. the error is: addAndSetupAccessories got error Optional(Error Domain=HMErrorDomain Code=79 "Failed to add the accessory." UserInfo={NSLocalizedDescription=Failed to add the accessory.}) i'm running the HomeKit simulator with a home created + one standard lightbulb accessory added. if i run on device it works as expected (using my real homekit accessories) xcode: Version 12.0 beta 4 (12A8179i) homekit accessory simulator: Version 4.0 (135.3)
Posted
by ziggmike.
Last updated
.
Post not yet marked as solved
2 Replies
422 Views
just wondering.. whenever i call readValueWithCompletionHandler on a HMCharacteristic, i get log messages like: [-[HMCharacteristic readValueWithCompletionHandler:], /Library/Caches/com.apple.xbs/Sources/HomeKit/HomeKit-714.0.4.1.1/Sources/HomeKit/HMCharacteristic.m:513 (DBEA6EA4-BD3B-4673-BB61-934AF9480EB0)] Thread left active (1): <NSThread: 0x282534680>{number = 1, name = (null)} I've tried various things like changing when I call it, making sure I call it on the main thread etc but always with the same result. Is this expected? bad? I'm using Xcode 12.0.1 (12A7300), running on iPadOS 14.0
Posted
by ziggmike.
Last updated
.