Ionic platform Add iOS, Error:spawn eacces

Source: Internet
Author: User

Rt:

Cordova Ionic Environment is set up, you need to add platform to package, add platform if error: Error:spawn eacces,

The reason is because hooks is not added, use ionic add hooks, this command. Hooks is used to check whether the code is engineered, in fact Ionic build is a combination of two commands

Ionic prepare (the process of generating www) and ionic compare. Hooks will be executed before and after these two commands, for example: Before_prepare and After_prepare, Before_compare and After_compare.

Before_prepare:ionic prepare before executing, that is, before generating the WWW directory. This is a good time to do code compression (gulp), delete unnecessary files (such as sass). The gulp part will no longer have to be executed manually gulp Build-release.

After_prepare:ionic prepare after the execution, this place can do some AppID replacement work, we can get to the command line input through Process.env.CORDOVA_CMDLINE. For example, if I enter Ionic Build-dev or ionic build-release, I can get the current package required parameters are dev Local development configuration, Release line production environment configuration.

Reference Documentation:

Https://github.com/lanceli/cnodejs-ionic/tree/master/hooks

1190000004420853

Ionic platform Add iOS, Error:spawn eacces

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.