Changing core data model location

So I am working on a project where the former dev had written his persistence layer code as a cocoapod. I am integrating it into the the workspace as a framework project because it will never be used with any other app and I want to get rid of the overhead of updating a cocoapod every time I need to make a change.

The problem I am running into is this error now I have created the framework in the workspace:

Could not determine generated file paths for Core Data code generation: Error Domain=NSCocoaErrorDomain Code=260 “No current version for model at path /Users/ABC/projects/path/Path/Model/MyModel.xcdatamodeld:” UserInfo= {NSFilePath=/Users/ABC/projects/path/Path/Model/MyModel.xcdatamodeld, NSLocalizedDescription=No current version for model at path /Users/ABC/projects/path/Path/Model/MyModel.xcdatamodeld:}

I am wondering how to deal with this?

@mountainbrussells Thanks very much for your question!

I found the following answer on StackOverflow which I hope is of assistance :slight_smile:

I hope this helps!

All the best!

This topic was automatically closed after 166 days. New replies are no longer allowed.