iOS 应用及其扩展之间共享的应用组容器的最大存储限制是多少

What is the maximum storage limit for app group containers shared between an iOS app and its extensions

我已经为我的应用创建了 WatchKit 扩展。两者共享一个公共应用程序组容器来存储和获取数据文件。

我的应用及其扩展之间共享的应用组容器的最大存储限制是多少?

我相信应用程序组没有特殊的大小限制。 (至少,我在 Apple 的文档中找不到任何关于此的信息。)

但是,可存储的数据量受 "device" 上可用内存量的限制。 "device" 似乎是你的 iPhone(而不是你的 Apple Watch),因为 documentation 声明:

WatchKit settings must be stored in a shared group container that is accessible to both your iOS app and your WatchKit extension. Because the WatchKit settings bundle resides in your iOS app, the system writes preference values to the iOS app’s container by default.