Reputation: 402
I set up the launch images as so, XCode forced me to rename the images which is ok, but for some reason when I run iOS Simulator, there is no launch image displayed. Instead, a black screen is displayed. Previously I had the warning Missing default-568h@2x launch image
which went away when I clicked add on the menu that was popping up when I expanded the warning. However the launch images still do not display when launching the app. I have tried resetting all content, cleaning, building, and then running again, but nothing seems to be working. Additionally, XCode did not rename any of my images to default568h@2x
so I'm assuming that is a problem, even after I clicked add. I do have launch image set to default in info.plist.
Any suggestions?
Upvotes: 8
Views: 8657
Reputation: 5579
Upvotes: 0
Reputation: 696
I am using Xcode 11.3.1
, and I just did a project clean up, this warning is gone:
ā§ + ā + K to Clean Build Folder
.
Close Xcode.
Re-open Xcode.
Re-build project.
Upvotes: 0
Reputation: 323
Xcode 11 outputs this error if you move your Info.plist file and forget to tell Xcode about the new location in Build Settings.
The Info.plist contains metadata about your LaunchScreen storyboard/image. Apparently, Xcode assumes you want to use a launch image (and did not provide one) when it cannot find the target's Info.plist file. Updating the Info.plist location in Build Settings fixes this disconnect:
This is not the OP's situation (they intended to use launch images), but I thought I would add this breadcrumb for anyone like me who got this error after moving an Info.plist file.
Upvotes: 5
Reputation: 3748
No need to name a file like that.
Just doing this solves the problem :
1. Add launch images inside assets by right click / add new files.
By doing this, you will add launge images set.
2. Then set all of these launge images.
To see the sizes do these : Select the image then you can check the size on the property inspector at right. Like this:
Upvotes: 1
Reputation: 2161
If (as opposed to all the previous answers) you're not interested in any launch image at all (i.e. the error appeared after deleting it), the following suffices:
1. Product > Clean
2. Product > Build
Upvotes: 0
Reputation: 1559
Upvotes: -1
Reputation: 856
I meet the same problem, but the result comes out because i changed the Launch Image Source Setting. Here is how I fix it:
Problem Solved.
Upvotes: 10
Reputation: 7333
I am guessing but just try following steps :
Upvotes: 1