ios - Deleted CloudKit records Reappear -
i'm building ios application using cloudkit.
it should allow user add, edit , delete products
in cloud. user can organize these in folders. these folders other record types in cloudkit. there no limit levels of folder user can use, folder can hold ckreference
it's parent folder. cloudkit communication in app happens in dedicated cloudkitcontroller class
this works, stops working after while no clear reason.
when test app, don't user folders multiple levels deep. however, after using while (up week), deleted records seem reappear on cloudkit. couple of notes on this:
- when reset cloudkit dashboard , start on again, works perfect. no code changes made.
- obviously, i'm editing code app in development. however, don't edit data types in code stored in cloudkit. when do, issue not arise straigt afterwards
- changes in cloudkit dashboard (e.g. adding data types) not cause issue
- am not storing records locally, in core data. sit in singleton long use them
- when go cloudkit dashboard, product record type shows has e.g. 13 instances. it's bad, app loads on 100. can see them when go recordzone, still recordtype says has 13 instances
- deleting these records in cloudkit dashboard makes them disappear while. when reload page, pop again.
it has been going while now, , have checked code, apple library , google numerous of times cannot figure out causes issue.
question: know on how overcome issue? said, i've been running weeks, , resetting cloudkit dashboard 'cures' week, pops again. i'd more happy post code if answer question. haven't posted code initially, have no clue code might cause this.
any answer highly appreciated
apple replied bug report have filed issue should solved ios 9. far seems right issue hasn't occured again, please let me know if still bothering someone.
Comments
Post a Comment