iOS launch image won't show up on iPhone or si

2019-07-01 11:47发布

问题:

I'm having this problem whether I use asset catalogs or the old-school way. Xcode 5.1.1 in all cases.

I've got all my images in, and Xcode does not give me the "you're missing the 568-h" error or anything, but when I launch the app, my Launch image only shows on iPad, not iPhone. This happens on the simulator AND device. I have done clean installs, cleaned out DerivedData, etc.

I also checked that my info.plist doesn't have anything to do with Launch images when I use asset catalogs, but nope, nothing in there.

Attaching screenshots to show how I have it set up with either method, any thoughts?

回答1:

  1. Delete your current LaunchImage and create a new one. Drag the images to your project first and then substitute launch images for app icons. Images.xcassets > Choose Editor > New Launch Image

    Check your LaunchImage preferences after you click on it -

  2. Goto Xcode > Product > Clean

  3. Since, iPhone simulator is known to cache stuff, go ahead to iPhone Simulator > Reset Content and Settings (or manually delete the app from your iPhone simulator)

  4. Don't forget to check your deployment settings (Target > General > Deployment Info). Universal app? Now, run your project in different iOS simulators and check for warnings!