ios - iOS9按需资源(ODR)向后兼容

标签 ios backwards-compatibility ios9 one-definition-rule on-demand-resources

On-Demand Resources (iOS)

On-demand resources are resources—such as images and sounds—that you can tag with keywords and request in groups, by tag. The App Store hosts the resources on Apple servers and manages the downloads for you. On-demand resources enable faster downloads and smaller app sizes, improving the first-time launch experience. For example, a game app may divide resources into game levels and request the next level of resources only when the app anticipates that the user will move to that level. Similarly, the app can request In-App Purchase resources only when the user buys the corresponding in-app purchase.

ODR 对某些应用程序很有用,但这个新功能的向后兼容性机制是什么。老实说,很少有应用程序只支持最新的 iOS 版本。它总是最多返回 2 个版本。

我的理论是,旧版本可能会简单地忽略整个 ODR,让用户从商店下载完整的应用程序包。

有没有人有更多信息可以澄清这一点?

最佳答案

请参阅 Apple 文档中的这条注释 App Thinning :

Note: For iOS apps, sliced apps are supported on the latest iTunes and on devices running iOS 9.0 and later; otherwise, the App Store delivers universal apps to customers.

该文档并未 100% 清楚这对 ODR 的影响,但它非常强烈地暗示:

  • 当 iOS 9 客户端从 App Store 下载您的应用程序时,iOS 将仅下载基本应用程序(针对设备进行适当切片),以及您包含在 Xcode 初始安装标签中的资源。
  • 当 iOS 8 或更早版本的客户端获取您的应用程序时,iOS 将...

    enter image description here

    ...以及所有特定于 CPU 的二进制文件、所有特定于设备大小的 nib 等。

关于ios - iOS9按需资源(ODR)向后兼容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31716780/

相关文章:

ios - 如何在iOS中获取复制的图片?

.net - 我正在寻找像 LibCheck 这样的工具来评估同一 SDK 的不同版本

swift - 尝试分享抽奖时出错

ios - AFHTTPRequestOperationManager 始终使用缓存的响应

ios - 如何在 iOS 9 的 UILabel 中获取等宽数字

ios - UIImageView 作为 callout 的 leftCalloutAccessoryView 自动移动左上角

ios - 尝试在 UICollectionView 中显示标题时未调用 GetViewForSupplementaryElement

delphi - Delphi 4 Pro可以在Windows XP(或更高版本)上可靠地安装和使用吗?

.NET Framework 和版本兼容性

android - iOS 应用程序中的身份验证方法