ionic cordova platform add ios@latest – [ERROR] An error occurred while running subprocess cordova.

1.93K views
0

I installed the tools

npm install -g @angular/cli
npm install -g ionic
npm install -g cordova@8.1.2

Changed directory to the downloaded project folder (see attachment 1)

% npm install

created node_modules folder and had no error.

% ionic cordova platform add ios@latest

This displayed “error : EACCES: …” (see attachment 2)

Then I tried

% sudo ionic cordova platform add ios@latest

(platform/ios/…), (plugins/…), (www/…) folders files were created, but had an Error at the end.

Also, the same error comes when i build the app,

% sudo ionic cordova build ios –prod

Build Failed

( error occurred while running subprocess cordova)

Answered question
Sorry, you do not have permission to read comments.