Search code examples
iosxcodelaunch-screen

Image doesn't show up in iPhone Launch screen


I have images that don't show up when I use it in:

  • (iPhone) launch-screen

But images show up in:

  • (simulator) random views of the storyboard
  • (simulator) launch-screen
  • (iPhone) random views of the storyboard

It looks like I messed up with my Assests folder(s), moreover I checked and normally in Copy bundle resources there is 3 items (launchscreen, main.storyboard, Assets.xcassets)

In my case there is only the Launch-screen one.

In parenthesis there is written (1 of 3)? What does it mean?

When I try to add the missing ones to this list, it doesn't show up (main.storyboard file neither Assets.xcassets)

How can I add this back to the list?

Is this related to my problem with images that doesn't show up in the launch-screen?

Do you have any explanation (or a link?) on how xCode(9) is doing the work behind the compilation-load-bar, related to:

  • the Copy bundle resources settings?
  • the assets?

Missing items in Copy bundle resources


Solution

  • click + button under "Copy bundle resource" and add both main.storyboard and Assets.xcassets from the pop up.

    EDIT: in case the sources are not available in the pop up. search them in finder and drag and drop to project to add them again. (since those might have got deleted with their reference.)