You can watch this episode by subscribing to Cocoacasts Plus.

Seeding a Core Data Persistent Store

Loading Seed Data From a File

Seeding a Core Data Persistent Store

Hard-coding seed data is quick and easy, but it's not my preferred solution. Loading seed data from a file is a strategy I like more. The idea is simple. You include a file with seed data in the application bundle. The file is loaded at runtime and its contents parsed. The contents is used to seed the persistent store with data.

Cocoacasts Plus

Are you ready to step up your game?

Cocoacasts Plus helps Swift and Cocoa developers take their education serious without being overwhelmed.

Next Episode "Loading Seed Data From a Remote Server"