I am using IBM Worklight 6.1 and trying to copy a file into iphone/native/www/worklight
folder
The file I am trying to copy/erase is cordova_plugins.js, For that purpose I edited the buildtime.sh
shell script by adding the line:
cp "${SRCROOT}/cordova_plugins.js" "${SRCROOT}/www/default/worklight/cordova_plugins.js"
This does not work after deploying for iPhone, and returns a permission denied
error.
After unlocking the file cordova_plugins.js
(manually), the script works without errors.
So, I tried to unlock the file with the same script shell, by adding
chflags nouchg "${SRCROOT}/www/default/worklight/cordova_plugins.js"
just before the cp
instruction, but It does not seems to change anything (no additional error, but the issue remains the same.)
Is there a way to unlock the /www/worklight
files in project settings or programatically? How to do that with my buildtime.sh script ? Any other workaround?