Launch Images

Pulling my hair out. I simply cannot get launch images to work in the iOS version of my app. Every time I launch in the simulator, I always get a tiny little icon in the middle of the screen.

Right now, I'm using asset catalogs for the launch images. But it behaves exactly the same when I specify the images in Info.plist. Here's the relevant portion of my Info.plist:

    <key>UIPrerenderedIcon</key>
    <true/>
    <key>XSAppIconAssets</key>
    <string>Resources/Images.xcassets/AppIcons.appiconset</string>
    <key>XSLaunchImageAssets</key>
    <string>Resources/Images.xcassets/LaunchImages.launchimage</string>

Side note: In Visual Studio 2015 when I double click on "Images" under "Asset Catalogs", it always shows that there are 3 named "LaunchImages". I can delete the duplicates, but they always come back.

This is Contents.json from Resources\Images.xcassets\LaunchImages.launchimage:

{
  "images": [
    {
      "orientation": "portrait",
      "extent": "full-screen",
      "minimum-system-version": "7.0",
      "idiom": "iphone",
      "scale": "2x",
      "filename": "iPhonePortraitSlpash640x960.png",
      "size": "640x960"
    },
    {
      "orientation": "portrait",
      "extent": "full-screen",
      "minimum-system-version": "7.0",
      "subtype": "retina4",
      "idiom": "iphone",
      "scale": "2x",
      "filename": "iPhonePortraitSplash640x1136.png",
      "size": "640x1136"
    },
    {
      "orientation": "portrait",
      "extent": "full-screen",
      "minimum-system-version": "7.0",
      "idiom": "ipad",
      "scale": "1x",
      "filename": "iPadPortraitSplash768x1024.png",
      "size": "768x1024"
    },
    {
      "orientation": "portrait",
      "extent": "full-screen",
      "minimum-system-version": "7.0",
      "idiom": "ipad",
      "scale": "2x",
      "filename": "iPadSplashPortrait1536x2048.png",
      "size": "1536x2048"
    }
  ],
  "info": {
    "version": 1,
    "author": ""
  }
}

All the images specified in the json exist. What am I missing here?

Tagged:
Sign In or Register to comment.