mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Cant link my Model.xcmodeld file to CoreStore #229
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @siempay on GitHub (Sep 19, 2018).
I have a framework where I setup my model layer and there I have
"Model.xcdatamodeld"file where my model graph is, but following the tuto here, I could not addStorage successfullyand keep getting this:
"Could not find \"Model.momd\" from the bundle \"com.utopie.myapp\". Other model files in bundle: 0 item(s) []"as I understood : I should do just
try CoreStore.addStorageAndWait()inside the framework where my file is! am I right ?@JohnEstropia commented on GitHub (Sep 20, 2018):
Can you show the exact code you are calling?
@siempay commented on GitHub (Sep 24, 2018):
I used all simples from your documentation:
CoreStore.defaultStack = DataStack( xcodeModelName: "myModel")but I could not connect to my model file.
This is what Im already using to load persistant store
/// context public func getContext() -> NSManagedObjectContext{ return self.persistentContainer.viewContext }@JohnEstropia commented on GitHub (Sep 25, 2018):
You mention you are using a framework, so your model's source
Bundleis notBundle.mainwhich CoreStore uses as default. Please try: