Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12331

JPG splash screens work on simulator but not work on real device

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Do
    • None
    • None
    • None

    Description

      My config.xml has added some JPG files for iOS splash screen, no Android splash added.

      <splash height="1136" src="res/ios/splash/Default-568h@2x~iphone.jpg" width="640" />
      <splash height="1334" src="res/ios/splash/Default-667h.jpg" width="750" />
      <splash height="2208" src="res/ios/splash/Default-736h.jpg" width="1242" />
      <splash height="1242" src="res/ios/splash/Default-Landscape-736h.jpg" width="2208" />
      <splash height="1536" src="res/ios/splash/Default-Landscape@2x~ipad.jpg" width="2048" />
      <splash height="768" src="res/ios/splash/Default-Landscape~ipad.jpg" width="1024" />
      <splash height="2048" src="res/ios/splash/Default-Portrait@2x~ipad.jpg" width="1536" />
      <splash height="1024" src="res/ios/splash/Default-Portrait~ipad.jpg" width="768" />
      <splash height="960" src="res/ios/splash/Default@2x~iphone.jpg" width="640" />
      <splash height="480" src="res/ios/splash/Default~iphone.jpg" width="320" />

      That works fine on iOS simulator, but the splash screens not work on real device, and causes cropped display (iPhone 4 aspect ratio) on iPhone 5/6.

      I checked the DerivedData/[my app]/Build/Products/ folder, and there are two folders: Debug-iphoneos and Debug-iphonesimulator, I found the package in Debug-iphonesimulator has LaunchImage-700.png file (and other LaunchImage-xxx files), it has extension .png but it actually a JPEG file, but Debug-iphoneos don't have these files.

      This behaviour is weird and does anyone know the reason? Do we need some more document to declare what happened and how to solve this issue?

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            pengan Andy Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment