قالب وردپرس درنا توس
Home / IOS Development / ios – tvOS launch the image not visible

ios – tvOS launch the image not visible



I make a tvOS app and struggle for 2 days now with the launch image.
It used to be correct, since it did not show the launch image for a few days, it turns out there is no blur.

I have checked the picture and it does not use an alpha channel, but in another tvOS I work On the start screen you use an alpha channel, and it shows (and is accepted when uploaded to the store).
The target is correctly set for use with launchImage.

Outside of the idea, I ended up creating a new singelovis tvOS project, and set the valid project startup as launchImage. And that style does not work.

For an unknown reason, launchImage showed at some point, but I could not render it. I have then tried to clean the building folder several times, change the distribution target between 9 and 1

2, insert "do not start image" and return, delete the app from simulator or device before building … no work.

What's on?

edit :
So, I've downloaded tvOS 11.4 simulator. First try the 11.4 simulator and launch Image shows on it. Switches on tvOS 12 simulator after and launch screen now also shows.
I killed the simulator and tried on both versions: No startup.

I just do not understand what's happening.

edit 2 :
It looks like I've found a pattern: The launch image only shows if the app is launching in the same season where the app was installed on the simulator, and it's not the first time the app is launching since the installation. In all other cases, do not start image.

Examples:
run 1 (simulator launch and app install)
setup: app not installed, simulator not running
Result: launchImage does not appear

run 2 (app new launch):
setup: app already installed, simulator already running
Result: launchImage is displayed

run 3 (app new launch):
setup: app already installed, simulator already running
Result: launchImage is displayed

Now I close the simulator.

run 4 (app install):
setup: app already installed, simulator not running
Result: Startup does not appear

run 5 (app new launch):
setup: app already installed, simulator running
Result: Startup does not appear

Now the app is deleted

run 6 (app install):
setup: app not installed, simulator running
Result: Launch image is not displayed

Never appears on a tvOS 12 device.

edit 3 : Additionnal info

Tested on Xcode 10.1.0.
Here is the LaunchImage JSON file:

{
"Images": [
{
"orientation" : "landscape",
"idiom" : "tv",
"filename" : "13790f74@2x.png",
"extent" : "full-screen",
"minimum-system-version" : "11.0",
"scale" : "2x"
},
{
"orientation" : "landscape",
"idiom" : "tv",
"filename" : "13790f74.png",
"extent" : "full-screen",
"minimum-system-version" : "9.0",
"scale" : "1x"
}
],
"info": {
"version": 1,
"author": "xcode"
}
}

And the pictures:
 @ 1x
  + 2x


Source link