jshthornton
jshthornton

Reputation: 1314

iOS splash screen images not copying over

I am creating a PhoneGap project and I have a config as follows:

<icon src="icon.png" />

<icon gap:platform="android" gap:qualifier="ldpi" src="www/res/icon/android/icon-36-ldpi.png" />
<icon gap:platform="android" gap:qualifier="mdpi" src="www/res/icon/android/icon-48-mdpi.png" />
<icon gap:platform="android" gap:qualifier="hdpi" src="www/res/icon/android/icon-72-hdpi.png" />
<icon gap:platform="android" gap:qualifier="xhdpi" src="www/res/icon/android/icon-96-xhdpi.png" />

<icon gap:platform="ios" height="57" src="www/res/icon/ios/icon-57.png" width="57" />
<icon gap:platform="ios" height="72" src="www/res/icon/ios/icon-72.png" width="72" />
<icon gap:platform="ios" height="114" src="www/res/icon/ios/icon-57-2x.png" width="114" />
<icon gap:platform="ios" height="144" src="www/res/icon/ios/icon-72-2x.png" width="144" />

<gap:splash gap:platform="android" gap:qualifier="port-ldpi" src="www/res/screen/android/screen-ldpi-portrait.png" />
<gap:splash gap:platform="android" gap:qualifier="port-mdpi" src="www/res/screen/android/screen-mdpi-portrait.png" />
<gap:splash gap:platform="android" gap:qualifier="port-hdpi" src="www/res/screen/android/screen-hdpi-portrait.png" />
<gap:splash gap:platform="android" gap:qualifier="port-xhdpi" src="www/res/screen/android/screen-xhdpi-portrait.png" />

<gap:splash gap:platform="ios" height="320" src="www/res/screen/ios/screen-iphone-landscape.jpg" width="480" />
<gap:splash gap:platform="ios" height="768" src="www/res/screen/ios/screen-ipad-landscape.jpg" width="1024" />

For some unknown reason when performing phonegap build ios the splash images are not being copied across into the platform resources.

For reference. I am using version 4.1.2

Thanks.

Upvotes: 1

Views: 1107

Answers (1)

jshthornton
jshthornton

Reputation: 1314

I found my own solution to this. As I was building this locally via phonegap build (ios|android) and not online my build tool was just a wrapper of cordova. Because of this I decided to try use cordova's syntax for this situation instead. It worked.

http://cordova.apache.org/docs/en/4.0.0/config_ref_images.md.html

Upvotes: 1

Related Questions