Any alternative for HMCharacteristicTypeSerialNumber in iOS 11
As of now iOS 11.0, characteristicTypeconstants have been deprecated. Access to manufacturer, model, and firmware version info, Now obtained through the newer HMAccessory
properties manufacturer
, model
, and firmwareVersion
. reference
For example:
print("Manufacturer: \(accessory.manufacturer)")
print("Model: \(accessory.model)")
print("Firmware Version: \(accessory.firmwareVersion)")
NSInternalInconsistencyException', reason: Foo is not a subclass of NSManagedObject
If you aren't using custom classes (no Place.[hm]), as it sounds like you're not, check the Entity tab, and make sure the Class name is blank (= NSManagedObject) – not Place.
Related Topics
"Ambiguous Reference to Member Map" When Attempting to Append/Replace Array Element
Switch to Match Multiple Cases from Optionsettype
Which Optimization Level Should I Choose for Release
Shorthand for Wrapping a Swift Variable in an Optional
Difference Between Object(Forkey:) and Value(Forkey:) in Userdefaults
How to Get Reliable Timing for My Audio App
Make Tabview Background Transparent
Views Are Merged Instead of Showing Them Separately
Xcode Debugger Displays Incorrect Values for Variables
Converting Cmtime to String Is Wrong Value Return
Can't Get Throws to Work with Function with Completion Handler
Extend All Number Types in Swift
Naming Convention for Private Properties
Decrypted String Always Returning Null
Swift - Measurement Convert(To:) Miles to Feet Gives Wrong Result
How Is Commoncrypto Used in Swift3
Nsmanagedobjectcontext's Propagatesdeletesatendofevent Set to False Causes Error on Save