Launch Image does not show up in my iOS App

前端 未结 28 1722
逝去的感伤
逝去的感伤 2020-12-02 04:11

I want to get a simple launch screen to show in my app, built using Xcode 6.0.1.

I have added a launch screen in two ways: As an XIB (with the default name, LaunchSc

28条回答
  •  时光说笑
    2020-12-02 05:00

    I had a very strange bug. Apparently my launch image source was only set for debug configuration and not release. This resulted in my launch screen appearing when running debug configuration, but when I changed to release I just got a black screen.

    I fixed this when I changed my build configuration to release the Launch Image Source button appeared and I had to choose Use Asset Catalog again.

    For those who are curious, this is what my project.pbxproj looked like.

    ...
    ...
    ...
    XXXXXXXXXXXXXXXXXXXXXXXX /* Release */ = {
                isa = XCBuildConfiguration;
                buildSettings = {
                    ALWAYS_SEARCH_USER_PATHS = NO;
                    ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
                    ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; <---THIS LINE WAS MISSING
    ...
    ...
    ...
    

提交回复
热议问题