acburk/CoreDataTutorial2Importer — pull request #1 by cococo1 (2014-07-03 13:38:12+00:00)
Title: Minor changes to make project work as expected using Xcode 5-6.

The current version has a problem for iOS 7,8 and Xcode 5,6: As suggested in some comments of [this](http://www.raywenderlich.com/12170/core-data-tutorial-how-to-preloadimport-existing-data-updated) tutorial, when the .sqlite file is copied to the iOS project, it is empty. Citing the corresponding comment:

"
I discovered that the console application is not actually writing anything to the sqlite database. This is why Chris_284 does not see any new records in the iPhone simulator after following the second half of this tutorial. The problem is that Apple has changed the default journal mode to WAL for iOS7 and XCode 5. This results in journalling files being created in the product directory...
CoreDataTutorial2.sqlite
CoreDataTutorial2.sqlite-shm
CoreDataTutorial2.sqlite-wal
One solution is to disable the journal mode in the console application so that the records will be written to the .sqlite file immediately.
In main.m, change the managedObjectContext method to call addPersistentStoreWithType with options...
NSError *error;
Dictionary *options = @{ NSSQLitePragmasOption : @{@"journal_mode" : @"DELETE"} };
NSPersistentStore *newStore = [coordinator addPersistentStoreWithType:STORE_TYPE configuration:nil URL:url options:options error:&error];
Clean out the Build/Debug directory (right-click on product and show in finder) and then re-build and run the console application. You should only see the CoreDataTutorial2.sqlite database file in the directory. You should not see the -shm or -wal files
"

So I made the corresponding changes and now it works with Xcode 6-Beta2 and iOS 8.0.