1

I'm building a Cordova app for iOS using Visual Studio Tools for Apache Cordova 3.1 CTP in Visual Studio 2013 and I have a problem with the iPhone (and iPad) images. They are overwritten when the XCode project sent to be built on iOS is generated.

In the below image you can see on the left the images in my Visual Studio project. On the right side is the project sent to iOS opened in XCode. The images there are not the ones I've provided, but the default ones from Cordova.

enter image description here

As a result, the app gets built with the default splash screens, not the ones I've created.

My config.xml file contains the following:

<platform name="ios">
    <!-- 1st Gen, 3G & 3GS : 320×480   -->
    <splash src="res/screen/ios/Default~iphone.png" width="320" height="480"/>
    <splash src="res/screen/ios/Default-Portrait~iphone.png" width="320" height="480"/>
    <!-- 4 & 4S            : 640×960   -->
    <splash src="res/screen/ios/Default@2x~iphone.png" width="640" height="960"/>
    <splash src="res/screen/ios/Default-Portrait@2x~iphone.png" width="640" height="960"/>
    <!-- 5, 5C & 5S        : 640×1136  -->
    <splash src="res/screen/ios/Default-568h@2x~iphone.png" width="640" height="1136"/>
    <splash src="res/screen/ios/Default-568h-Portrait@2x~iphone.png" width="640" height="1136"/>
    <!-- 6                 : 750×1334  -->
    <splash src="res/screen/ios/Default-667h@2x~iphone.png" width="750" height="1334"/>
    <splash src="res/screen/ios/Default-667h-Portrait@2x~iphone.png" width="750" height="1334"/>
    <!-- 6 Plus            : 1242×2208, downsampled to 1080 x 1920 -->
    <splash src="res/screen/ios/Default-736h@3x~iphone.png" width="1080" height="1920"/>
    <splash src="res/screen/ios/Default-736h-Portrait@3x~iphone.png" width="1080" height="1920"/>
</platform>

I've see Cordova iOS Splash Screen and Cordova 3.4 iOS white screen after splash and I've done what's suggested there, but it didn't help.

Any suggestions are appreciated.

UPDATE: I have updated Cordova to version 5.1.1 both on Windows and Mac but it didn't help with the problem.

UPDATE: The problem was a blatant error, the folder name was screens not screen.

Community
  • 1
  • 1
Marius Bancila
  • 15,632
  • 8
  • 47
  • 86

1 Answers1

1

Here's a link to a workaround. Let us know if this works for you.

Subhag Oak
  • 1,664
  • 9
  • 11
  • Thanks for the link. I will give it a try. – Marius Bancila Jul 11 '15 at 07:09
  • I just realized that my path `res/screen/ios` was incorrect, as the folder was called `screens` not `screen`. After I fixed that it works with both the standard Cordova names and the ones mentioned in your workaround link. – Marius Bancila Jul 11 '15 at 21:40