user1126515
user1126515

Reputation: 1163

Cordova iOS - how to change minimum deployment version?

I've got cordova v6.0.0 and a test device that is iOS 7.1.2

Based on what I read, cordova v4.0.0 was updated to use minimum deployment target iOS 8

Is there anything I can do, either in or out of Xcode, to force this to deploy to my iOS 7.1.2 test device?

Upvotes: 30

Views: 31383

Answers (3)

Andy
Andy

Reputation: 61

You can add the deployment-target as a preference in config in your plugin.xml

  <config-file parent="/*" target="config.xml">
        <feature name="<pluign name>">
            <param name="ios-package" value="plugin name"/>
        </feature>
        <preference name="deployment-target" value="12.0" />
        <preference name="target-device" value="universal" />
    </config-file>

Upvotes: 4

Connor
Connor

Reputation: 64654

You can add the deployment-target preference to your project's config.xml. For example, this would set the deployment target to iOS 7.1.2.

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

Since this is below Cordova's minimum supported version, there is no guarantee this will work.

Upvotes: 45

johnborges
johnborges

Reputation: 2533

Cordova iOS 4.0.0 does in fact target iOS 8 by default. This means your app will only be installable on iOS devices running 8.0 or greater. You can go into Xcode and change this setting. Click on your project name, then the General tab, and under Deployment Info you will see a Deployment Target drop down.

Upvotes: 1

Related Questions