Post

Replies

Boosts

Views

Activity

Reply to Unarchiving data without secure encoding with new NSKeyedUnarchiver APIs
I added this extension to make it a more or less identical API signature: extension NSKeyedUnarchiver { static func insecureUnarchivedObject<DecodedObjectType>( ofClass cls: DecodedObjectType.Type, from data: Data ) throws -> DecodedObjectType? where DecodedObjectType : NSObject, DecodedObjectType : NSCoding { let unarchiver = try NSKeyedUnarchiver.init(forReadingFrom: data) unarchiver.requiresSecureCoding = false let decodedType = unarchiver.decodeObject(forKey: NSKeyedArchiveRootObjectKey) as? DecodedObjectType return decodedType } }
Topic: Programming Languages SubTopic: General Tags:
Nov ’23
Reply to Unarchiving data without secure encoding with new NSKeyedUnarchiver APIs
I added this extension to make it a more or less identical API signature: extension NSKeyedUnarchiver { static func insecureUnarchivedObject<DecodedObjectType>( ofClass cls: DecodedObjectType.Type, from data: Data ) throws -> DecodedObjectType? where DecodedObjectType : NSObject, DecodedObjectType : NSCoding { let unarchiver = try NSKeyedUnarchiver.init(forReadingFrom: data) unarchiver.requiresSecureCoding = false let decodedType = unarchiver.decodeObject(forKey: NSKeyedArchiveRootObjectKey) as? DecodedObjectType return decodedType } }
Topic: Programming Languages SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to Xcode 13: "Preparing Editor Functionality" hang?
I somehow found a way around this. I closed any open projects, I created a new project (iOS App), got that project to build, then the issue kind of sorted itself out the next time I opened the project that was giving me problems. I don't know if this will work for you, but something to try anyway.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Xcode 13: "Preparing Editor Functionality" hang?
Same here... just upgraded to Xcode 13 and it's stuck on this, 8714/8802 files. Is there really no solution?
Replies
Boosts
Views
Activity
Oct ’21