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
Whenever I'm trying to unarchive an object like so image = aDecoder.decodeObject(forKey: "image") as! PFFile
it keeps crashing with the error below! Any idea what's going on?
With further examination I realized that whenever the decoder tries to decode the data, it finds null.
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not save file data for 309c4db5f6e623ba0286ac891017322d_62237520_372569220283311_350326562345713664_n.jpg : Error Domain=NSCocoaErrorDomain Code=4 "Cannot create a PFFileObject with nil data." UserInfo={NSLocalizedDescription=Cannot create a PFFileObject with nil data.}'
Not sure what I changed but the data doesn't seem to be an issue anymore... now this is what I get:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<PFFileObject 0x600000b05470> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key _url.'
Whenever I'm trying to unarchive an object like so
image = aDecoder.decodeObject(forKey: "image") as! PFFile
it keeps crashing with the error below! Any idea what's going on?
This is my NPAd class
The text was updated successfully, but these errors were encountered: