Need to share CoreData between the program and the Extension "today"

In the Target Membership I shared the CoreData.xcdatamodeld for Extension a itself, as well as the classes necessary for work, but as before, CoreData is not fumbled.

How to fiddle CoreData between App and Extension?

    1 answer 1

    In fact, work for 2-3 hours, although initially it seems that you can solve a couple function ...

    The main time and complexity is to bring CoreData and all classes from the project into the Framework.

    Also, special attention should be paid to the key of App Groups * , it is easy to lose, and the crashes are not very informative. Dare!

    This solution works on Apple watch , Push and Today Exetation

    Working decision here