Xcode 9, iOS 10 Asset Edition

I have a problem with the assets and beta version of Xcode 9 on devices with iOS 10. It does not download images from assets, so I can’t see any asset on the phone!

If I upload images to the storyboard, it just doesn’t show the images on the phone (but it appears in the storyboard) if I do something:

UIImage(named:"imageName")!

Log message failure:

*** Validation error in - [_ CUIThemePixelRendition _initWithCSIHeader:], / BuildRoot / Library / Caches / com.apple.xbs / Sources / CoreUI / CoreUI-428.6 / CoreTheme / ThemeStorage / CUIThemeRendition.m: 3788 The image "imageName failed to load "referenced by the thread bundled with the identifier" myIdentifierName "

This is strange, since the same code works as on another device with beta versions of iOS 11, and I see images.

Any suggestions?

+4
source share
3 answers

I have the same problem when I test the application on iOS 10. Check out the Xcode 9 beta release note and find out about known issues:

Asset Catalog

  • Jpeg- iOS 10 , Xcode 9. API , UIImage.imageNamed: return no. (32524123) . png iOS 11 .

jpg- png. . ...

+5

, xcode 9 beta 4. , .

Picture

, .

+4

Xcode 9 beta 3 ( 9M174d)

Jpeg assets in asset directories are on iOS 10 or earlier for applications built using Xcode 9. (32524123)

+1
source

Source: https://habr.com/ru/post/1679715/


All Articles