[SOLVED] Error: Source path does not exist: resources/ios/splash/Default-Landscape-736h.png

Hello everyone,

I have the orientation preference as portrait in config.xml as below:

<preference name="Orientation" value="portrait" />

My project is an ionic-v1 project. Recently I updated ionic globally and now I have ionic-cli version 3.4.0. I also updated cordova-ios to the latest version which is 4.4.0 in order to cope with some run/livereload issues. Then I removed ios platform and re-added it. Lastly I tried to build for ios:

ionic cordova build ios

And I see the following error and the command ends with failure:

:heavy_multiplication_x: Running command - failed!

[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova build ios (exit code 1):

    Error: Source path does not exist: resources/ios/splash/Default-Landscape-736h.png

As I said above there is nothing to do with a landscape splash in my project. I don’t want to run ionic cordova resources since it will overwrite my handmade splashes and icons. So what’s the deal? Any help will be much appreciated. Thanks in advance.

My system is:

global packages:

@ionic/cli-utils : 1.4.0
Cordova CLI      : 7.0.1 
Ionic CLI        : 3.4.0

local packages:

@ionic/cli-plugin-cordova : 1.4.0
@ionic/cli-plugin-ionic1  : 2.0.0
Cordova Platforms         : android 6.2.3 browser 4.1.0 ios 4.4.0
Ionic Framework           : unknown


Node       : v7.7.2
OS         : macOS Sierra
Xcode      : Xcode 8.3.3 Build version 8E3004b 
ios-deploy : 1.9.1 
ios-sim    : 6.0.0 
npm        : 4.1.2

I found an issue on GitHub for this particular case. There’s a workaround suggested for this: https://github.com/ionic-team/ionic-cli/issues/2417#issuecomment-308164229

Removing landscape splash entries from config.xml solved the problem.