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