4

I was editing some files in Xcassets and accidentally deleted the LaunchImage fileset. How do I get it back!?

I tried looking in the target, and the option to use xcassets as the image-containing folder is not there anymore.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Ethan Parker
  • 2,986
  • 1
  • 23
  • 29
  • Bad question, +1 for a good answer. – Adrian P Feb 17 '14 at 23:41
  • 1
    Yes, a nice answer indeed. However, it could also address the strong recommendation of using a version control system, then you could just hit reset/revert after having done something accidentally :) – Jan Nash Dec 12 '16 at 17:22

1 Answers1

8

I looked around for a question that *specifically addressed this issue and couldn't find one.

Here's what you do:

  • Right click in the white space under the existing image folders
  • (OR) click on the "+" at the bottom of the area

  • Now select "New Launch Image"

enter image description here

This will bring back the original launch image options with all the many, many new image sizes that Xcode 5 and iOS 7 need.

Like this:

enter image description here

Ethan Parker
  • 2,986
  • 1
  • 23
  • 29