Jan Leon
Jan Leon

Reputation: 176

Cordova showing shows default splash screen in iOS?

I working on a small app for iOS, I replace all the images inside platforms/ios/app/resources/splash with my own images, but it still showing the default image, any ideas why is doing this?

Upvotes: 2

Views: 1673

Answers (2)

Carlos Perez
Carlos Perez

Reputation: 435

Here another option you can use

    • Command-Option-Shift-K to clean out the build folder.
    • Quit Xcode and using the terminal clean ~/Library/Developer/Xcode/DerivedData manually. Remove all its contents because there's a bug where Xcode will run an old version of your project that's in there somewhere.
    • go the terminal open the app, run, cordova build ios, cordova prepare ios

Upvotes: 3

Dawson Loudon
Dawson Loudon

Reputation: 6029

If you run cordova build or cordova prepare before you have placed your splashscreen images they will become cached by xcode. To resolve this follow these steps:

In xcode -

  • Click on your base project in the Explorer window
  • Make sure your app is selected under the Targets heading
  • Selected the General tab
  • Scroll down to the Launch Images section
  • Click the folder icon next to each image and select the appropriate file for each
  • Re-launch your app

Upvotes: 1

Related Questions