Running igs phonegap gives internal shell.js error (Mac, Cordova)

This is the console output I get when I try to "run with phonegap run ios", which runs "cordova run ios".

ErlendMBPrivate:fsecapp erlendellingsen$ phonegap run ios 
[phonegap] executing 'cordova run ios'...
shell.js: internal error

Error: EPERM, operation not permitted '/Applications/XAMPP/htdocs/jobb/fsecapp/platforms/ios/F-Securities/config.xml'
at Object.fs.chmodSync (fs.js:821:18)
at copyFileSync (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/cp.js:41:6)
at /usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/cp.js:198:5
at Array.forEach (native)
at Object._cp (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/cp.js:157:11)
at Object.cp (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/common.js:186:23)
at /usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/prepare.js:74:23
at Array.map (native)
at /usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/prepare.js:65:40
at _fulfilled (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/q/q.js:787:54)

      

Now. I understand that there seems to be a chmod issue. However. All folders named in the output log are accessible, readable and writable by all users. I chmodded all folders.

More importantly When I enter sudo-mode there is no internal error. However. Authenticating as root and using "sudo -i" on command line, unable to find valid signing IDs

If you don't understand the problems that come with executing as sudo see the StackOverflow question I posted last week: Phonegap / cordova command line gives code signing error, xcode works fine. (IOS)

+3


source to share


1 answer


The phone book (via Cordova) has insufficient permissions on the project folder.

To fix this issue, you need to change the project folder permissions to create a Cordova config.xml

write file .

Usually Phonegap is started by the user, Cordova is called by Phonegap, so in order to grant Cordova permissions, you need to give the user ownership of the project folder. This can be achieved as follows:



sudo chown -R $(whoami) "/Applications/XAMPP/htdocs/jobb/fsecapp"

      

source

+1


source







All Articles