jeudi 8 janvier 2015

Swift: cannot preload Coredata

when i include a sqlite-file with Objective-C under "Target - Build Phases - Copy Bundle Resources", this file will be completely copied to the target, i.e. device or simulator. On the target, i get the whole file: tables and contents (Records/rows).


Doing the same with Swift, the tables will be copied, but they are empty: no records/rows. :-(


May i do something additional? Is there any "trick"?


How can i preload my coredata with base-records using Swift???


I'm using Xcode v6.1.1, with Beta 6.2 it is the same.


Aucun commentaire:

Enregistrer un commentaire