iOS Launch Screen Asset Catalog not working

前端 未结 8 1748
爱一瞬间的悲伤
爱一瞬间的悲伤 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 12:02

    Search for LaunchImage keyword in your .plist file and delete it. Then, try assigning the image again by dragging as you already did before...

    0 讨论(0)
  • 2021-01-01 12:02

    This case raised in Xcode 5.0 + iOS 7. Apple use Images.xcassets to group App Icons, App Launch (Default) Images in Xcode 5.0 + iOS 7.

    For solving the problem of Asset Catalog Compiler Error The launch image set named "LaunchImage" did not have any applicable content.

    Approach: Putting suitable size of images into LaunchImage. For example: Should be 640x960 dimensioning in iPhone Portrait iOS7 2x. Should be 640x1136 dimensioning in iPhone Portrait iOS 7 R2.

    Reference from iOS App Programming Guide:

    Create and Set iOS Launch Images

    Launch images are displayed while your app is launching on iOS. A launch image matching the device resolution appears as soon as the user taps your app icon.

    App Launch (Default) Images

    Specify the launch images for your app in your Xcode project settings. In Xcode 5.0, specify these images on the General tab of your project settings; in older versions of Xcode, this tab may have a different name. Xcode places your launch image files at the top-level of the app bundle and configures other project settings as appropriate. Specifically, Xcode adds the UILaunchImages key to your app’s Info.plist file automatically if your app runs on iOS 7 or later. That key tells the system the name of your app’s launch image files. For earlier versions of iOS, the system uses the launch image filenames to decide which image to load.

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