Cordova iOS - how to change minimum deployment version?
Asked Answered
C

3

28

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?

Chaw answered 21/4, 2016 at 11:42 Comment(1)
You might be able to set the deployment target to iOS 7 but that does not mean that Cordova will work. If Cordova call any methods that are not available on iOS 7 your app will crash.Anhanhalt
T
43

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.

Tactual answered 23/4, 2016 at 2:44 Comment(1)
works fine with phonegap cli-5.2.2 (cordova-ios 3.9.1) tooDebauch
A
4

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>
Athapaskan answered 12/7, 2021 at 5:30 Comment(0)
H
1

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.

Heterochromatic answered 22/4, 2016 at 12:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.