I have an existing iOS app with a single target and a corresponding LaunchScreen.storyboard
.
In the same Xcode project I have created a new target (e.g newtarget
) by duplicating the initial one. I also have created a new launch screen LaunchScreen-newtarget.storyboard
(added as a resource of this target) which is referenced in the new target's plist file (in Launch screen interface file base name
).
But I only see a black screen instead of the launch screen when running this target.
How can I use a separate launch screen for my new target?
You need to make sure the launch screen is added as a resource for the new target and then update the UILaunchStoryboardName
key (also known as Launch screen interface file base name
) in the new target's plist file to say LaunchScreen-newtarget
.