How can I use a pre-populated core data DB on my device.
Posted
by KingAndrew
on Stack Overflow
See other posts from Stack Overflow
or by KingAndrew
Published on 2010-03-24T15:19:50Z
Indexed on
2010/03/24
15:23 UTC
Read the original article
Hit count: 186
Hi all, I have developed my app using core data. It works fine in the simulator. When I deploy it to the device the DB is empty. It is 49k where it should be 484k.
Basically it is not populated. Since I don't write to the DB when the app is running I need to provide a populated DB to the App. So I copied the populated DB from the simulator to resources and then deploy.
Still no luck. the populated DB is in MyApp.app and the AppDelegate is reading from the Documents directory. How do I either get it in the documents directory or get the app delegate to look in the app?
Thanks in advance,
Andrew
© Stack Overflow or respective owner