Launch Images and asset catalog

I’m trying to work out how to use launch images contained in an asset catalog. If I start with your universal app and remove the launch storyboard, and its reference in info.plist, then go add a launch image in Xcode and populate it, it doesn’t seem to work correctly.

I couldn’t see a way to tell Fire to use this, but looking inside the element file, I can see the reference to the app icon, so edited it to say:

    <AssetCatalog Include="Resources\Images.xcassets">
        <AppIcon>AppIcon</AppIcon>
        <LaunchImage>LaunchImage</LaunchImage>
    </AssetCatalog>

However, it doesn’t seem to be enough, since when I look in the package created, I see all the various app icons OK, but only 2 launch images are created, and have odd names - LaunchImage-700-568h@2x.png and LaunchImage-700@2x.png.
Attached is the project.
Archive.zip (947.2 KB)

I’ll check. but you really should be using launch storyboards.

There should be a context menu to set those: Image 2015-04-30 at 4.21.25 PM

OK, don’t worry then I will do that - I thought since these were added in iOS7 that this was the right way to go.

Ah, so there is, sorry - missed that, so what I added manually was correct, but it still doesn’t create them correctly I think.

Any details in the build log? this is all done by actool.

Not really, it just lists the ones it creates, no errors mentioned (try the attachment above if you want to see)

Weird. Does the same .casset generate more images, within an Xcode project?

Hmm, --target-device iphone that’s prolly it. wondering if i need to pass something else there for universal…

yup. Xcode passes --target-device iphone --target-device ipad

Thanks works great in latest beta.

1 Like