How can I guarantee unique entries in a Core Data store in a shared app container used by both the host app and an extension?

后端 未结 2 1544
故里飘歌
故里飘歌 2021-01-30 12:04

To ask my question effectively, let\'s first consider the exact scenario I\'m facing:

General Setup

  • A host iOS 8 app.
  • One or more
2条回答
  •  面向向阳花
    2021-01-30 12:19

    It seems like the simplest approach to this would be to simply avoid the multiple writers in the first place. Why not just drive your extensions entirely off cached data, and then only update your data store from your primary iOS app?

提交回复
热议问题