ios - Why MagicalRecord is saving data in simulator, but not in the device? -


this save code:

func saveentity() {         if let fileent = self.entity {             let context = fileent.managedobjectcontext             context?.mr_savetopersistentstorewithcompletion({ (success, error) -> void in                 if error != nil {                     println("db_save_error: \(error)")                 }             })         }     } 

the app working fine in simulator, it's not working in device.

nsmanagedobjectcontext(magicalsaves) mr_savewithoptions:completion:](0x14e41220) no changes in ** background saving (root) ** context - not saving 

removing app device, did not job.

(latest magicalrecord installed cocoapods.)

i'm not sure why working in simulator. can maybe provide more code regarding creation , saving usage?

anyhow, recommend using method mr_savewithblock, because saves parent contexts automatically, big once deal several contexts in concurrent use.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -