breautek commented on issue #1422: URL: https://github.com/apache/cordova-ios/issues/1422#issuecomment-2063858826
This was an issue in cordova-ios 6.3 but I believe was patched in 7.0 (definitely in 7.1). I have a google maps plugin that requires iOS 15 and I used to manually workaround this issue but it was corrected after I updated my projects to 7.1. I used: ```xml <platform name="ios"> <preference name="deployment-target" value="15.0" /> </platform> ``` adding the plugin and then the platform works as expected, with the generated podfile properly containing `15.0` instead of the default `11.0`. This also works if you add the platform first, or use the preference outside of the `<platform name="ios">` block. Updating the preference and running `cordova prepare ios` also shows the changes reflected in both the platform's `Podfile` and `config.xml`. > The deployment-target set in the root config.xml should be reflected in the platforms/ios/[App Name]/config.xml before any script or process accesses it. The expectation of "any script or process" is not quite right. The platform files (including config.xml and Podfile) gets updated during the `prepare` step, so if you're using an hook, script or process that runs before prepare (such as `before_prepare` hook) for example, that will run before the config.xml file is updated inside the platform project, and that would be desired behaviour because the hook is for manipulating things before cordova does things. `after_prepare` is a hook for after cordova manipulates things, etc. I can not reproduce the issue using the current version of cordova-ios. Simply adding a plugin in which requires a higher deployment target of 11 is not enough to reproduce the issue. If you can provide a sample reproduction project, it may help us understanding the full scope of when the issue reproduces. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org