Asset catalog with image restricted to 4GB or higher devices, does not get downloaded on 1TB ipad pro 3rd gen

Originator:tyler.m.kopf
Number:rdar://49713853 Date Originated:April 8 2019
Status:Open Resolved:
Product:Xcode Product Version:10.2 (10E125)
Classification:Serious Bug Reproducible:Always
 
Summary:
When an image is restricted to 4GB or higher ipads in an asset catalog, the image is not downloaded on 2018 ipad pros with 1TB of storage on iOS 12.2 (or later probly). These ipads are the only tablets with 6GB of ram (many have 4GB).

Steps to Reproduce:
1. Create an image set in an asset catalog with a contents.json file like below:
{
  "images" : [
    {
      "idiom" : "ipad",
      "scale" : "1x"
    },
    {
      "idiom" : "ipad",
      "scale" : "1x",
      "memory" : "4GB"
    },
    {
      "idiom" : "ipad",
      "filename" : "LOWER_RES.png",
      "scale" : "2x"
    },
    {
      "idiom" : "ipad",
      "filename" : "HIGHER_RES.png",
      "memory" : "4GB",
      "scale" : "2x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}

2. Archive the app.
3. Distribute the archive with thinning enabled (or upload to testflight/app store etc).
4. Examine the variant for ipad8,6
5. Notice the `LOWER_RES.png` file is included in that variant, instead of the 4GB+ texture `HIGHER_RES.png`

Expected Results:
The 6GB device would get 4GB+ images from imagesets.

Actual Results:
The device gets the lower res <4GB images from imagesets.

Version/Build:
Xcode 10.2 (10E125)

Configuration:
Release

Comments

Apple Developer Relations

Thanks for your update.

We are reopening this report, and we'll see if any further action is possible.

If you have questions, please update your report at:

http://bugreport.apple.com

By tyler.m.kopf at April 17, 2019, 10:59 p.m. (reply...)

Me

I know it's a reference to RAM.

It's still a critical issue.

That device has 6GB of RAM (and is the only device with 6GB), so it should be receiving the assets we've restricted to >=4GB of RAM devices.

If I were to guess, I'd say there's a == 4GB check in some apple code somewhere instead of a >= 4GB.

Please reopen this bug report

By tyler.m.kopf at April 16, 2019, 7:29 p.m. (reply...)

Apple Developer Relations

This issue behaves as intended based on the following:

The Memory is a reference to RAM, not the system storage capacity.

We are now closing this bug report.

If you have questions about the resolution, or if this is still a critical issue for you, then please update your bug report with that information.

Please be sure to regularly check new Apple releases for any updates that might affect this issue.

By tyler.m.kopf at April 16, 2019, 7:29 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!