nofelmahmood / Seam

Seamless CloudKit Sync with CoreData
https://medium.com/@Nofel/reason-why-cloudkit-cannot-be-ignored-9c7806d76230
MIT License
669 stars 64 forks source link

NSData Attribute Sync Crash #17

Closed fila95 closed 9 years ago

fila95 commented 9 years ago

I've got my nsmanagedobject subclass which has also an nsdata attribute to store an image. That's not always needed and so when i set it to nil Seam Crashes. Look at the screenshot below.. Hope in a fix.. Best regards

schermata 2015-08-26 alle 12 01 55
nofelmahmood commented 9 years ago

Check now :)

fila95 commented 9 years ago

ok thanks ;)

nofelmahmood commented 9 years ago

Tip when using NSData in Seam You should store pictures as a CKAsset. For a CKRecord there is a size limitation. For a CKAsset there is not (beside the CloudKit storage limitations). According to the documentation:

Use assets for discrete data files. When you want to associate images or other discrete files with a record, use a CKAsset object to do so. The total size of a record’s data is limited to 1 MB though assets do not count against that limit.

Seam doesn't support CKAsset as for now. But this feature is in works. Follow this issue to find out when it gets done.