I recently cleaned up an old iOS project and I want to add CoreData. I last worked on this project when iOS 4 was still new.
I am using a bit of boiler plate code I use for another project. This code creates a singleton from which I can access my PersistentStoreCoordinator.
#import <CoreData/CoreData.h>
@interface CoreDataManager : NSObject {
....
}
I added my files to my project, added the framework and linked to CoreData.framework in my target.
My project compilation now fails on NSPersistentStoreCoordinator.h, NSPersistentStore.h, NSAtomicStore.h with
- Parse Issue Expected ';' after method prototype
- Parse Issue Expected an Object-ve-C directive after '@'
I am fairly sure it is not my CoreData code since I use the files in another project with no issues.