cordova-ios
cordova-ios copied to clipboard
IPHONEOS_DEPLOYMENT_TARGET is hardcoded to 8.0 and override does not work
Bug Report
- cordova add platform ios 6.2.0
- the Pods project.pbxproj has an harcoded version of ios8.0
- setting in config.xml a newer
has zero effect, per https://cordova.apache.org/docs/en/10.x/config_ref/
Problem
- unable to override ios8.0, can't build for > 8 versions
- latest xcode on ARM64 M1 macs wants at least ios9
- can't use cordova ios on latest xcode since ios8.0 can't be overriden
What is expected to happen?
- setting the config.xml preference deployment-target should erase the hardcoded project.pbxproj ios 8
What does actually happen?
- ios8 is hardcoded hence xcodes fails to build since 9.0 - 15.0 is required
Information
Command or Code
Environment, Platform, Device
Version information
- cordova 10.0.0
- ionic 6.12.4
Checklist
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
Running into this as well. 😕
is there any workaround for this?
If I'm understanding this correctly... this appears to be simply how CocoaPods works:
- https://github.com/CocoaPods/CocoaPods/issues/4859
- https://github.com/CocoaPods/CocoaPods/issues/7314
Changing this value only changes the Pod project's own default deployment target, which does nothing for the deployment settings of any individual pods.
For example, in my own project, the deployment target here is aligning with the cordova preference I've set:

But, for each individual pod, the deployment target is still whatever is controlled by the pod specfile itself:
