Ionic\Cordova EACCESS Error

ionic-logo-blogWhen your running the command “ionic run ios or ionic emulate ios” on a Mac you may be presented with the following error:

Error: spawn EACCES

The most common cause of this error is that the scripts in your hooks directory don’t have execute permission. You may also try removing and adding your ios provider. If that doesn’t work the other fix is to run the following command:

sudo find /path/to/your/app/hooks -type f -exec chmod +x {} \;

This will iterate over every file in your hooks directory and grant execute permission. Try running the run/emulate command again and the problem should be gone.

If you’re a First Responder or know one check out Resgrid which is a SaaS product utilizing Microsoft Azure, providing logistics, management and communication tools to first responder organizations like volunteer fire departments, career fire departments, EMS, search and rescue, CERT, public safety, disaster relief organizations.

About: Shawn Jackson

I’ve spent the last 18 years in the world of Information Technology on both the IT and Development sides of the aisle. I’m currently a Software Engineer for Paylocity. In addition to working at Paylocity, I’m also the Founder of Resgrid, a cloud services company dedicated to providing logistics and management solutions to first responder organizations, volunteer and career fire departments, EMS, ambulance services, search and rescue, public safety, HAZMAT and others.