magicalpanda / MagicalRecord

Super Awesome Easy Fetching for Core Data!
Other
10.8k stars 1.79k forks source link

App crashed on setValue for attribute type binary data #1340

Closed Instadex closed 5 years ago

Instadex commented 5 years ago

After converting our code base to Swift 4.2 we were getting crash when setting value for attributes of type "binary data". I have updated the attributes to "Transformable type" but it is not inserting the data in DB.

Error when the data type was binary data: "desired type NSData given type __NSDictionary error"

Coeur commented 5 years ago

This is not enough for us to analyze the issue: you'd need a Minimal, Reproducible Example.

For me, no issue with Transformable types using Swift 5 and MagicalRecord (master branch), so I'll close that issue until more useful details are provided (you can also make a Pull Request too).