iOS Launch Screen Asset Catalog not working

前端 未结 8 1747
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-01 11:09

I believe I am making a silly mistake. But I cannot figure it out.

I have an image named Default.png that I have added to my project. Now when I go to General and t

相关标签:
8条回答
  • 2021-01-01 11:39

    I tried everything here, deleted the .app and rebuilt each time, and nothing worked. I finally got fed up and switched back to the old style of launcher image specification (Project Settings Window -> General -> Launch Images -> Source -> Don't use asset catalogs.) That worked!

    0 讨论(0)
  • 2021-01-01 11:40

    I had this problem as well. Make sure of a couple of things:

    1. Aspect Ratio is what Apple expects, in other words square
    2. The sizes are correct, 60pt (for example) should be 60x60
    3. 60pt @2x should be 120x120

    After I fixed the sizes the app compiled without errors but I think the most important thing is the aspect ratio.

    0 讨论(0)
  • 2021-01-01 11:42

    The same error has been resolved by adding the exact sizes of launch images for different iOS devices.

    0 讨论(0)
  • 2021-01-01 11:42

    Try looking at the code for "LaunchImage" and rename it to "Default"

    0 讨论(0)
  • 2021-01-01 11:48

    In my case, with Xcode 7, the Images.xcassets was missing from the Build Phases, under Copy Bundle Resources. Then I just added it manually and the problem was gone.

    0 讨论(0)
  • 2021-01-01 11:59

    Check and compare carefully if your image size matches the expected size. In my case I was using a wrong size, but when correcting the project built fine.

    Check this attached image to see where you can compare them

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