3lvis / DATAStack

100% Swift Simple Boilerplate Free Core Data Stack. NSPersistentContainer
Other
214 stars 44 forks source link

Datastack backup is empty #117

Open zanderxyz opened 5 years ago

zanderxyz commented 5 years ago

Hi,

I am using a DataStack created as follows: self.dataStack = DATAStack(modelName: "money", isExcludedFromBackup: false)

This should then be included in iTunes/iCloud backups. I wanted to check this, so I downloaded iPhone Backup Extractor from here (https://www.iphonebackupextractor.com/blog/ios-data-recovery-apps-data-iphone-backups/), made a new iTunes backup and then checked the backup using this app. Although I can see the SQLite file (under com.myapp.title/Library/Application Support/myapp.sqlite), if I extract it and then open the SQLite file using a SQLite viewer, it doesn't contain any actual data from my app. It does contain the full database structure though.

Do you have any ideas what might be causing the data to be missing from the backup?

Thanks

3lvis commented 5 years ago

Hi @zanderxyz,

Let me double check what's happening :)