You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Array, Dictionary, String, Data, Date, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Int, UInt, Float, Double, Bool, NSArray, NSDictionary, NSString, NSData, NSDate, NSNumber, CFArray, CFDictionary, CFString, CFData, CFDate, CFNumber, and CFBoolean should be the only types that can exist in a property list. (it is worth noting that any of the collection types, ala Array or NSArray MUST ONLY contain property list types and Dictionaries and NSDictionaries MUST ONLY contain String/NSString/CFString keys and MUST ONLY contain property list values)
Now that all being said: it is quite possible via the Codable protocol to marshal any structured type into a decomposition that is represented by those types.
Additional Detail from JIRA
md5: 243c24973c4c93e917da850b1907c06d
Issue Description:
The plist file can store NSObject aka AnyObject aka Any aka CFTypeRef aka NSCFType and SwiftFoundation NSKeyedArchiver can read those.
The PropertyListSerialization is able to handle that too. YET, there is no way to decode this value using Decodable and PropertyListDecoder.
error is: eg. "Expected to decode Data but found __NSCFType instead."
I wonder if is it possible to (any)
bitcast those to Any
treat as raw bytes (return Data)
anything is better than throw error.
The text was updated successfully, but these errors were encountered: