Search code examples
iosobjective-cxcodelaunchimagelaunch-screen

LaunchImage in Images.xcassets with Launchscreen.xib


I'm using Xcode 6 with iOS 8 and 7, I have a Launchscreen.xib, and in General Target I've well configured my project :

https://i.sstatic.net/ByJ6G.png

But I think Launchscreen.xib doesn't work on iOS 7.1.

So I've made LaunchImage in Images.xcassets for other iOS which doesn't support Launchscreen

https://i.sstatic.net/GFbgD.png

I don't know why, that makes me 2 warnings :

/Users/../Desktop/ProjectName/ProjectFolder/Images.xcassets: The launch image set "LaunchImage" has 2 unassigned images.

How to fix it and use only Launchscreen.xib (if that works for every iPhone/iPad, or use my two images in LaunchImage (Images.xcassets)


Solution

  • How to fix it and use only Launchscreen.xib (if that works for every iPhone/iPad, or use my two images in LaunchImage (Images.xcassets)

    Launchscreen.xib is a feature of iOS 8, so if you are targeting iOS 7 You should add launch images.

    What worked for me is to leave Launch Screen File field empty and to use assets catalog with launch images. I tried to use both together but I couldn't make good results...

    enter image description here