'Error: spawn EACCES' When trying to build iOS


#1

Hi all,
When trying to build for iOS I am getting the spawm eacces error. I have done lots of searching , and I am unable to find a fix to this issue.
Here is what happens:

ionic build ios
Running command:
/hooks/before_build/resource_files.js
/Users/AppName

That’s it. No more error lines or anything.

Here is my Ionic Info:
Your system information:

Cordova CLI: 6.5.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: 1.9.1
ios-sim version: 5.0.8
OS: macOS Sierra
Node Version: v6.11.0
Xcode version: Xcode 8.3.3 Build version 8E3004

Any help would be awesome


#2

That doesn’t really make sense as output - as it also doesn’t include the error. Can you please copy/paste the whole ouptut of ionic build ios?

In general: You are using quite an old Ionic CLI version. I would advise you to update that to the newest version so that not already fixed bugs and problems are causing your issues.


#3

Hi,

Ive made sure the command was correct, and there is no error message other then the spawn EACCES on the /hooks/before_build/resource_files.js


#4

Interesting.

You should upgrade our CLI to at least 2.2.3, better even the most current 3.x version (and then rerun ionic info and post that).
Run the command again with --verbose added at the end then.