Mr. Noddy Mr. Noddy - 1 year ago 110
Android Question

How to change default settings of Ionic build ios command?

I have setup a gulp process to deploy my ionic application. Using gulp process I run ionic build ios to make build or cordova build ios --device to generate ipa, but it makes my build/IPA with default setting always which results in increased IPA size(almost 10-12 MB) and takes more time to upload/download to iTunes, for e.g

  • Target - 8.0 (Should be 6.0)

  • Device - Universal (Need to change this to iPhone only)

  • View Mode - Not specific (I want to set this to portrait only) are default settings which I want to modify.

We can change settings through XCode, but I want to take charge of all this setting on command line. Is there any possible way to make this happen? or are there any command which takes such parameters?

Please help..!!

Answer Source

Please check this article. It has all the configuration related to cordova project which is mainly handled by config.xml.

<preference name="deployment-target" value="7.1.2" />

Refer this answer and this too.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download