Files can be written and read from the App Group by multipler apps. When an app is removed, its files are also removed.
It looks like files in the App Group folder are owned by the app that created them. So, if app A adds a file to the App Group and then app A is removed, the file in the App Group is also removed. If App B reads that file, it better deal gracefully with it disappearing.
What if a file in the App Group is created by app A and then modified by App B? Does ownship transfer to app B or remain with app A? If app A is removed after app B modifies the file, will it be removed?
It looks like files in the App Group folder are owned by the app that created them.
No, that’s not correct. App groups are reference counted; when the last app that has access to the group is removed, the group’s container is removed.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"