18

I am trying to build an iOS app using Xcode and Cordova, however I keep getting this error message:

cordova/lib/copy-www-build-step.sh: Permission denied

Has anyone overcome this problem before?

2 Answers 2

57

You can fix it like this also

cd platforms/ios/cordova/lib
sudo chmod +x copy-www-build-step.sh

This basically gives the file execute permission only instead of chmod 777 which gives it full permission (read, write, execute.) For anyone wanting clarification on what the difference is.

2
  • 1
    @Vivek2012 in terminal
    – Neotrixs
    Commented Jun 14, 2015 at 17:40
  • 4
    I had to do this in /platforms/ios/MyApp/Scripts but this chmod +x thing worked. THANK YOU! Commented Jul 4, 2019 at 12:17
17

Faced exact same issue.

I guess git messed up the permissions between windows / mac.

cd platforms/ios/cordova/lib

sudo chmod 777 copy-www-build-step.sh

Then try to build the project. Worked for me.

1
  • This helped me! My issue was with the file project.pbxproj
    – Eric
    Commented Jul 7, 2017 at 0:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.