Launch images show black, when using Asset Catalog

前端 未结 9 893
耶瑟儿~
耶瑟儿~ 2021-02-02 12:33

In Xcode 5, I use the asset catalog to manage the app icons and launch images for my app. The app icons work fine on all devices, but the launc

相关标签:
9条回答
  • 2021-02-02 13:13

    I have same problem. Tried all the solution posted here. Still nothing. Black screen only. After trial and error here and there, I found the solution. Delete the "Launch screen interface file..." in your project's PLIST. Delete the entry.

    Delete the ENTIRE LINE!!! Don't leave it there with empty value.

    Hope this helps someone.

    0 讨论(0)
  • 2021-02-02 13:16

    Have you changed the setting for your project so that it points to the Asset Catalog as the source for your Launch Image?

    enter image description here

    0 讨论(0)
  • 2021-02-02 13:18

    Make sure that Launch Screen File is empty! Making it empty solved the issue in my case

    enter image description here

    0 讨论(0)
  • 2021-02-02 13:18
    • delete your app from your device
    • cmd + shift +k in your Xcode. then build it into your Device

    launching images, only will be visible on your device if you reinstall on your device

    UPDATE:

    There is a weird issue what I found. If you are using LaunchScreen.xib and you have images in it, you have to do the tasks above and TURN OFF your device... (seriously...). Every image will be updated in the next build.

    0 讨论(0)
  • 2021-02-02 13:22

    The marked solution helped me figure out my problem:

    I had added all the different sizes for the Launch Images, but during launch I would see a white background with black letters "(my app name)" in the center of the screen, with "copywrite (my name)" in small letters along the bottom.

    I had specified the "Launch Images Source" to my Images.xcassets file, and added all the images for the correct sizes, but I did not notice that the "Launch Screen File" was still the default value of "LaunchScreen".

    I made the "Launch Screen File" entry blank,and it started to use the Images.xcassets files correctly.

    Thanks!

    This was Xcode 6.1 running on the simulator, ios8.

    0 讨论(0)
  • 2021-02-02 13:23

    For anyone stumbling on this question as I did:

    If your app is landscape only, it won't load the LaunchImage if portrait is not a "supported orientation". You should always have portrait selected, next to the landscape orientation(s) you want to support.

    See also: This question

    0 讨论(0)
提交回复
热议问题