duplicate HMServiceType values (Battery, CarbonMonoxideSensor)
Originator: | mpederson | ||
Number: | rdar://23052752 | Date Originated: | 10/09/2015 |
Status: | Duplicate of 22208405 (Open) | Resolved: | |
Product: | iOS (HomeKit) | Product Version: | 9 |
Classification: | Reproducible: | Always |
Summary: The UUID values of HomeKit constants HMServiceTypeBattery and HMServiceTypeCarbonMonoxideSensor are equal, making these service types indistinguishable. Steps to Reproduce: Launch an app that links HomeKit.framework in the iOS simulator. Use the debugger to query the values of these constants. For example: ``` (lldb) po HMServiceTypeBattery 0000007F-0000-1000-8000-0026BB765291 (lldb) po HMServiceTypeCarbonMonoxideSensor 0000007F-0000-1000-8000-0026BB765291 (lldb) p (BOOL) [HMServiceTypeBattery isEqualToString:HMServiceTypeCarbonMonoxideSensor] (BOOL) $29 = YES (lldb) ``` Expected Results: Expected these values to not be equal. Actual Results: The two values are equal. Regression: Problem is unconditional and exists in iOS 9 in Xcode 7.0.1 and iOS 9.1 in Xcode 7.1 beta 3.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!