I'm using the old school launch image approach instead of a Launch screen storyboard for unrelated reasons.
Normally when Apple has come out with new physical form factors they have added the ability to include images for the new screen sizes in the image asset catalog, which would in turn enable your app to run at native resolution instead of being scaled up from previously supported resolutions.
However, this time around that does not seem to be the case. This is how the LaunchImage asset looks in the final version of Xcode 10 (i.e. not GM):
As you can see there are no drop-ins for iPhone XS Max or iPhone XR, which both have a different (higher) resolution than iPhone X and iPhone XS.
I have seen other people with the same issue, however without any solution.
I can't seem to find any iOS 12 or Xcode 10 documentation suggesting that Apple only supports storyboards or xibs for launch screens going forward.
I had it set up like on your picture, and then I noticed that in the inspector on the right there is an 'iOS 8.0 and later' section of checkboxes that weren't checked - when I checked the Portrait one, the XS Max and XR boxes appeared. If you have that checked, maybe unchecking and checking it again would fix the problem.
Thanks to #Paulw11 for providing the answer.
As of this writing you have to delete your current LaunchImage asset (of course remember to copy your files to somewhere else first) and the go into your asset catalog and add a new LaunchImage asset. Then it will have the necessary drop-ins:
This seems like a bug to me, unless they're quietly pushing people to use storyboards?
My apps' splash screens are all plain black after upgrading to iOS9.
Does anybody know why this is? Some of them are using a .xib splash screen and some are using images, but they're all just black now. Does an app have to be built with Xcode 7 for the splash screen to work in iOS9? Has anyone seen some documentation on whether this is an intended breaking change from Apple?
Thank you!
UPDATE: Looking through the apps again it seems my older apps, which only had a Launch image and no .xib are still displaying correctly, so the issue seems related to the launch screen .xib
UPDATE2:
As hagi pointed out in the comment, after re-installing the very same binary it starts working again so the cause is probably that launch images are generated from the xib whenever the app is installed, and stored somewhere, and then when upgrading to iOS9, for some reason (unintended Apple bug most likely), the generated images are cleared, and the app ends up with no splash. And that's why the old-fashioned launch images are still safe and not affected by this, cause they're already baked into the app.
I'll report it as a bug to Apple.
Easy fix. No need to mess with anything. Xcode 7 just prefers the images to be "Universal".
Click on Assets.xcassets folder
Click the + sign to Import from Project.
Select all images
Done. Now your launch screen works and Xcode is happier.
Same problem here after I updated to iOS 9. Re-installing the app from the App Store seems to solve the problem. I guess, it's an iOS 9 glitch.
I had the exact problem and had a black launch screen after using Xcode 7, and at first re-adding the images in Launch-Screen.xib worked but it went black again.
I fixed this permanently by moving the images referenced by Launch-Screen.xib into an asset catalog, rather than using the png filenames.
Just to point out that once again (as this solution didn't appear in answers, and I've personally lost around two hours when "fixing" that), sometimes, especially when the app is in active development/debugging, it requires iOS device to reboot for the launch screen to be fixed.
Black screen default come because, iOS strictly enforces some a startup images it can be black or any images.
Use UILaunchImages key to the Info.plist file and use a dictionary to describe each launch image.
check following references
A launch storyboard or xib must be provided unless the app requires full screen
I am using xcode7.1 it works. Please download latest xcode7.1
I hope above information will help you.
In the storyboard 'Clears Graphics Context' box unchecked then It works.
What worked for me was
1 - Go to LaunchScreen.storyboard
2 - Select is the initial view controller
enter image description here
And you are good to go.
With me uninstalling the app, or rebooting the device didn't help. I used XCode for 5 more minutes, which is the mean time between failure in XCode and it gave "Unkown error occurred" error, which was very helpful. Of course as an experienced XCode developer I knew what to do, force-quit, clean the project, rebuild.
The first error was solved meanwhile as I had forgotten about that.
The problem maybe because missing image size: .png, #2x.png, #3x.png at LaunchScreen.xib
I made loading screen by LaunchScreen.xib
In this xib has load a image launch.png
But there are missing size launch.png, just exist launch#2x.png and launch#3x.png
After add missing image: launch.png, black square bug is gone.
Starting from iOS9 and Xcode 7 you are required to provide a LaunchScreen.storyboard for your launch screen in order to support the new multitasking feature on iPad.
To opt out of being eligible to participate in Slide Over and Split View, add the UIRequiresFullScreen key to your Xcode project’s Info.plist file and apply the Boolean value YES.
I have fixed this issue after removed Size Classes for LaunchScreen.xib
I used only Auto Layout for it.
I noticed the same issue on the launch screen and have a black square in the middle of the screen.
It might be due to missing images at the specified formats .e.g #2x, #3x etc.
I had the same problem. I downloaded Xcode 7 and upgraded my project to swift 2.0. After recompiling the issue was gone at first but then it started to happen again later on during my tests on other unrelated code.
So far two things get this fixed, in both cases temporarily. Remove the background image, add the same image with another name. New image works for a while. Second, is you resize the image view, and in most cases the image starts to work again, but only for a while.
I submitted my new update to iTunes connect while I was seeing the splash screen. Not sure if this is an operating system issue or app api issue that gets corrected with a recompilation of code.
I also tried enabling and disabling the new Bitcode feature but that didn't help.
I had the same issue with the new iOS 9 project I built using Unity (5.2). To fix that I added the image that I want to show as the launch image to the LaunchScreen-iPad.xib file's Image view.
The common solution of adding the Images in LaunchImage and setting it in Launch Image Source and deleting the entry in Launch Screen File did not solve my issue. The launch image is dependent on the iPhone you are using. Since my app was for iOS 8.0 and greater, choosing it in LaunchImage will ask you to upload only Retine 4.5" and Retina 5.5" images. But these sizes will work for iPhone 6 and 6 Plus. You should upload the images based on the device.
iPhone 4S:640 x 960 (#2x)
iPhone 5:640 x 1136 (#2x)
iPhone 6: 750 x 1334 (#2x) portrait, 1334 x 750 (#2x) landscape
iPhone 6 Plus: 1242 x 2208 (#3x) portrait, 2208 x 1242 (#3x) landscape
I wasted so much time solving the black screen launchimage issue. Hope this helps someone.
We always need to add proper size of image if we are using image.Assets for Launch image and select correct options for launch image Source on Clicking project navigator>General>AppICons and launch images > launch image Source > BrandAssets
If size of launch image is not correct with respect to device on which you are try to running app, then your app will run as iPhone 4 showing black top and bottom bars.
Resizing the image and changing the format to png fixed it for me :
Resize the images (1x => 500 × 825) (2x&3x => 600 × 991)
Change to png
Clean building folder and Derived Data
Restart xcode and simulator
The only consolation I take from this is that apparently I am not the only one having difficulty, specifically generating a launch image. I have googled the issue hundreds of times, consulted the iOS Dev Centre and searched through my rather extensive library of texts on the matter.
How are launch images created in Xcode 6 on an iPhone 5s(iPhone4 s) running iOS 7?
set Launch Images in project setting page->general->launch image source
I had this issue because I'm using Xcode 6.1 and my app deployment target is 7.0.
I tried using the asset catalog with my existing images. Doing that gave me this error:
/ObfuscatedProjectPath/Images.xcassets: The launch image set named "LaunchImage" did not have any applicable content.
My solution was to turn off the asset catalog and use the default names for the images:
Default#2x.png (iPhone 4/s size is still supported in iOS7)
Default-568h#2x.png (works for iPhone 5/6/6Plus sizes)
I received the following message after submitting an update.
If your application supports the iPhone device family, you must
include square icons of the following dimensions: 57x57 pixels and
120x120 pixels.
Why 120x120? Retina resolution is 114x114 which I have. Is it because of iOS 7? iOS 7 isn't even out yet though.
iOS 7 iPhone Retina icon is looking like it is going to be 120px by 120px.
iOS 7 iPhone:
Standard: 60px x 60px
Retina: 120px x 120px
iOS 7 iPad:
Standard: 76px x 76px
Retina: 152px x 152px
Looks like Apple decided to start enforcing the requirements a bit early, which does not surprise me in the slightest.
Same problem happened here bud I did not have an option to continue. It gives me the red dot and "Invalid Binary". However i've managed to fix that issue after 1 day trial and error.
The sollution is:
Rename the icon files in a way that they do not contain #2x suffix!
Before:
icon.png
icon#2x.png
icon~iPad.png
icon~iPad#2x.png
Now:
icon.png
icon_iphone4.png
icon_ipad.png
icon_ipad3.png
I also added "CFBundleIcons" key to the Info.plist file and added the "CFBundleIconFiles" array under the Primary icon key.
I don't think there is any necessary adjustments for the standard size, but there are adjustments needed for retina. This is a direct screenshot from Xcode 5.
It's kind of bogus, because you're right iOS7 isn't out, so they shouldn't force you. I submitted my app during the keynote with no trouble, but made the conversion quickly and am actually resubmitting now for iOS 7. It's weird that you got that message and I didn't.
iOS 7 isn't out yet as stated, but it's prudent for Apple to start enforcing the soon-to-be requirements as early as is feasible. You will notice that apps with a 57x57 or 114x114 icon will occasionally display entirely wrong on an iOS 7 device.
Implementing the new guidelines early - bearing in mind we should be getting a GM imminently - ensures that a lot of these problems will be eliminated.
I guess you shouldn't use the XCode beta version to submit your apps but remain on using your old XCode non-beta to submit your apps!
Here I didn't had any problems whatsoever regarding the old #2x suffix and the sizes.
This makes no sense, but suddenly one of the iPhone (iOS 5.0 target) apps I'm developing starts up with two (2) statusbars! Furthermore it's not always, only with some installs with some people.
This is the only related question I could find: Why do I see double status bars when starting my app?
App has three default.png files, all created by opening iPhone simulator and taking a screenshot. The files were drag & dropped into project target "Launch Images" section. No yellow warning triangles, so everything should be ok:
Default.png 320 x 480 (iPhone simulator)
Default#2x.png 640 x 960 (iPhone Retina 3.5-inch simulator)
Default-568h#2x.png 640 x 1136 (iPhone Retina 4.0-inch simulator)
Any ideas what could be wrong? Apple docs seem to say this setup is correct - but now even I started to see 2 statusbars at startup!
Update:
Getting crazier! I edited first two files - and saved without edits as-is. Problem fixed. Same with third image - problem remains !!! iPhone Retina 4-inch simulator was started using 3.5-inch launch image !!!
Yep, I labelled the pics. With different numbers.
So first two cases might have been some image file format issues and the third case looks like Apple defect. Any other guesses?
Xcode project target summary has Default-568h#2x.png image in box, it's the real image with correct number, and there is no yellow warning sign. That file does exists in file system, is in same folder as the two other ones and is included in "Copy Bundle Resources" build phase. What else can I check?
I'm not sure why this would be happening irregularly, but I think I have an idea. When you said that you took your screenshots with the iOS simulator, the status bar may have been saved as part of the image. Then, iOS is showing your Default.png squished down by 20px creating the illusion of two status bars during launch.