[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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s