I have to create a reusable framework that is internally use the offline storage for api request, for this i want to use core data, as I am know that for core data using need appdelegate instance. So How can I start this to use core data into my framwork that work seprately from the app that is used this framwork.
Suppose I have create a framwork which will register the application bundle id on server on which it is used. So for this I have to use the api request, and it is important to justify that my api definitely flush the request to the server if somehow request failure need to store the request within the app as offline data so that I will use this to flush the request to the server whenever network reachability found.
Please guide me how start working on it. For Core data management
I have use the following steps:
- Make xcdatamodel
- Add entities
- and make NSManageObject subclass from editor.
found the errors see in the given images
I am working on XCode 9.4.1 with swift 4.2