wei-spring / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Some launch image problems with the new IOS vm #1302

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Please clearly state whether the issue relates to a device/the simulator or
the tools.
If related to a device be sure to specify exactly which device with as much
details as possible.

I found a minor bug in the new iOS vm.

What steps will reproduce the problem?
1. create a simple hello world project and build it with the new iOS vm

What is the expected output? What do you see instead?

1st issue is that in LaunchImages bundle is iPhone 6+ portrait launch image 
incorrect.

That is in 
MyApplication-src/Images.xcassets/LaunchImage.launchimage/Contents.json is this 
snippet:

    {
      "extent" : "full-screen",
      "idiom" : "iphone",
      "subtype" : "736h",
      "filename" : "Default-736h-Landscape@3x.png",
      "minimum-system-version" : "8.0",
      "orientation" : "portrait",
      "scale" : "3x"
    },

but there should be (changed filename):

    {
      "extent" : "full-screen",
      "idiom" : "iphone",
      "subtype" : "736h",
      "filename" : "Default-736h@3x.png",
      "minimum-system-version" : "8.0",
      "orientation" : "portrait",
      "scale" : "3x"
    },

And the other problem is that .ipa could be much smaller, currently launch 
images are duplicated, here is a snipped form unzipped .ipa:

   31870 Jan 23 11:30 Default-568h@2x.png
   35830 Jan 23 11:30 Default-667h@2x.png
   52426 Jan 23 11:30 Default-736h-Landscape@3x.png
   63854 Jan 23 11:30 Default-736h@3x.png
   23149 Jan 23 11:30 Default-Landscape.png
   50590 Jan 23 11:30 Default-Landscape@2x.png
   23122 Jan 23 11:30 Default-Portrait.png
   51108 Jan 23 11:30 Default-Portrait@2x.png
   14672 Jan 23 11:30 Default.png
   26826 Jan 23 11:30 Default@2x.png
   31870 Jan 23 11:30 LaunchImage-700-568h@2x.png
   50590 Jan 23 11:30 LaunchImage-700-Landscape@2x~ipad.png
   23149 Jan 23 11:30 LaunchImage-700-Landscape~ipad.png
   51108 Jan 23 11:30 LaunchImage-700-Portrait@2x~ipad.png
   23122 Jan 23 11:30 LaunchImage-700-Portrait~ipad.png
   26826 Jan 23 11:30 LaunchImage-700@2x.png
   35830 Jan 23 11:30 LaunchImage-800-667h@2x.png

What version of the product are you using? On what operating system?

the latest buildserver build

Original issue reported on code.google.com by jaanus.h...@gmail.com on 23 Jan 2015 at 10:05

GoogleCodeExporter commented 9 years ago
The duplication is essential otherwise we get errors when submitting to Apple 
or you just don't see the launch image.

We needed to add the actual portrait image and fix the landscape image for the 
iphone 6+ which is now correct.

Original comment by shai.almog on 25 Jan 2015 at 1:14

GoogleCodeExporter commented 9 years ago
Well.. for testing in XCode I just clicked "Don't use asset catalogs" for 
Launch Images Source and removed the launch images directory. Everything seams 
to be working this way. Also App Store validation did not show any errors. 

Original comment by jaanus.h...@gmail.com on 27 Jan 2015 at 11:29