Package builds will fail if cordova and the native platforms have not been properly initialized. The issue can be resolved by running the following commands from the root of the project.
ionic integrations enable cordova
ionic cordova platform add android
ionic cordova platform add ios
Build log error examples:
[14:17:11]: -----------------------------------
[14:17:11]: --- Step: build_android_cordova ---
[14:17:11]: -----------------------------------
[14:17:11]: Adding Android platform...
[14:17:11]: $ cordova platform add android --no-fetch
[14:17:12]: ▸ You have been opted out of telemetry. To change this, run: cordova telemetry on.
[14:17:12]: ▸ Current working directory is not a Cordova-based project.
[14:18:16]: --------------------------------------
[14:18:16]: --- Step: cordova platform add ios ---
[14:18:16]: --------------------------------------
[14:18:16]: $ cordova platform add ios
[14:18:17]: ▸ Current working directory is not a Cordova-based project.
Comments
0 comments
Article is closed for comments.