Nativescript-cli: Changes of splash screen are not updated on iOS

Created on 18 Mar 2019  路  4Comments  路  Source: NativeScript/nativescript-cli

  • CLI: 5.2.3

When you change splash screen images and deploy project again on iOS device, the changes are not applied, you still see the old splash screen.
Steps:

  1. tns create MyApp --js
  2. tns deploy ios
  3. tns resources generate splashes new.png
  4. tns deploy ios
    Expected: The new splash screen is shown on app run.
    Actual: The old splash screen is shown on app run.
    The same steps work for android.
bug ios

Most helpful comment

If I remember correctly there's some system caching going on. I think the only way to reset these reliably is to reboot the device.

All 4 comments

If I remember correctly there's some system caching going on. I think the only way to reset these reliably is to reboot the device.

If I remember correctly there's some system caching going on. I think the only way to reset these reliably is to reboot the device.

uninstall -> reboot -> install, to to be exact.

This imo is a pretty bad bug related to nativescript... doesn't seem to have with native swift apps.

Solution
Again, thanks to the thread I have referenced above I found a way to solve this issue - name your new image differently from the one there was before in case your new one has the same name as the old one and put it out of the *.xcassets folder to the project directory and reference it in your UIImageView. And that's it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PeterStaev picture PeterStaev  路  3Comments

NickIliev picture NickIliev  路  3Comments

ZMW9 picture ZMW9  路  3Comments

trodellez picture trodellez  路  3Comments

bradmartin picture bradmartin  路  3Comments