1

I'm currently working on an app where i need to support iOS8 and iOS9. The app is being developed with Swift 2 with Xcode 7.2.1.

When i run the app on iOS9 everything is working perfectly and smoothly, on a simulator or on a device.

But when i run it on iOS8 (Sim or Device) any of my assets is loading and i got this error in the console.

-[CUIThemeRendition newImageFromCSIDataSlice:ofBitmap: usingColorspace:] Unsupported pixel format in CSI got 4
Unable to create unsliced image from csi bitmap data

All my assets are located in a AssetCatalog and they are all .png

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
Luis
  • 533
  • 1
  • 6
  • 19
  • See http://stackoverflow.com/questions/32911627/image-resources-xcassets-not-displayed-correctly-on-yosemite-in-application-bu, http://stackoverflow.com/questions/24643904/xcode-6-beta-3-unsupported-pixel-format-in-csi-or-unable-to-create-unsliced-i. Possible reason XCode bug, possible workaround not to use asset catalog – schmidt9 Mar 17 '16 at 15:54
  • Hello Luis. Please don't include the answer in the question. Ever. :) Questions should remain questions. You can post your answer yourself *as an answer to your question*, it's perfectly ok to do this. Thank you. – Eric Aya Mar 18 '16 at 14:10

2 Answers2

2

I finally found the answer to that problem. Basically it's because you got in the Asset Catalog Compiler options the Optimization field set to the property save, set it to nil and it works !

Luis
  • 533
  • 1
  • 6
  • 19
0

See these questions:

Image resources for iOS

Why does resource bundle copy .png as .tiff images?

The short answer that worked for me is: In your bundle target Go to,

Buld Settings > COMBINE_HIDPI_IMAGES and set to NO

Community
  • 1
  • 1
Andy Weinstein
  • 2,639
  • 3
  • 21
  • 32