[Cordova] I am getting the error message “cp: no such file or directory” but the file exist in the project. How to solve it ?

Error message 

Error that I found when I was adding the platform in your project locally :
cp: no such file or directory: /Users/camilamacedo/MyTestProject/res/icons/ios/Icon-72.png

Environments :

Cordova

Platform ios

How to solve it ?

Check the path set up in your config.xml file. Probably the relative path of your file is wrong.

Example:

Replace it :
  <icon src="res/icons/ios/Icon-72.png" width="72" height="72" />

For :
  <icon src="www/res/icons/ios/Icon-72.png" width="72" height="72" />

 

 

Leave a comment