Core Data store corruption
        Posted  
        
            by sehugg
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by sehugg
        
        
        
        Published on 2010-04-30T01:12:28Z
        Indexed on 
            2010/04/30
            1:17 UTC
        
        
        Read the original article
        Hit count: 458
        
A handful of customers for my iPhone app are experiencing Core Data store corruption (I assume so, since the error is "Failed to save to data store: Operation could not be completed. (Cocoa error 259.)")
Has anyone else experienced this kind of store corruption? I am worried since I aim to soon push an update which performs a schema migration, and I am worried that this will expose even more problems.
I had assumed that the Core Data/SQLlite APIs use atomic operations and are immune to corruption except if the underlying filesystem experiences corruption.
Is there a way to reduce/prevent corruption, or at least a good way to reproduce (I have been unsuccessful thus far).
© Stack Overflow or respective owner