You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "GitToTheHub (via GitHub)" <gi...@apache.org> on 2026/02/24 16:53:30 UTC

[I] Preference `deployment-target` don't set the version in `Package.swift` [cordova-ios]

GitToTheHub opened a new issue, #1608:
URL: https://github.com/apache/cordova-ios/issues/1608

   # Bug Report
   
   ## Problem
   
   When I change the `deployment-target` by `config.xml` the appropriate versions are not changed in `Package.swift` of cordova-ios and the included package CordovaPlugins. Building will fail, if a Swift Package is used which needs a higher `deployment-target` than `13.0` which is specified in cordova-ios 8.
   
   When setting the minimum iOS version to 16.0 `swift-tools-version:5.7` is needed instead of `swift-tools-version:5.5`. This must be changed also. 
   
   `Package.swift` cordova-ios:
   https://github.com/apache/cordova-ios/blob/3680775e73377377523143271e21570af68033fc/Package.swift#L27-L28
   
   `Package.swift` of `templates/project/packages/cordova-ios-plugins`:
   https://github.com/apache/cordova-ios/blob/3680775e73377377523143271e21570af68033fc/templates/project/packages/cordova-ios-plugins/Package.swift#L27-L28
   
   ### What is expected to happen?
   
   
   
   ### What does actually happen?
   
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ ] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [ ] I included all the necessary information above
   


-- 
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-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] Preference `deployment-target` don't set the version in `Package.swift` [cordova-ios]

Posted by "dpogue (via GitHub)" <gi...@apache.org>.
dpogue closed issue #1608: Preference `deployment-target` don't set the version in `Package.swift`
URL: https://github.com/apache/cordova-ios/issues/1608


-- 
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-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] Preference `deployment-target` don't set the version in `Package.swift` [cordova-ios]

Posted by "jcesarmobile (via GitHub)" <gi...@apache.org>.
jcesarmobile commented on issue #1608:
URL: https://github.com/apache/cordova-ios/issues/1608#issuecomment-3955325767

   We need to update the `Package.swift` inside the `cordova-ios-plugins` folder since that's the file getting the plugins and plugin dependencies, so, if a plugin needs a higher deployment target than the default it will cause issues like the ones described by GitToTheHub.
   We do the same with the `Podfile`.


-- 
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-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] Preference `deployment-target` don't set the version in `Package.swift` [cordova-ios]

Posted by "GitToTheHub (via GitHub)" <gi...@apache.org>.
GitToTheHub commented on issue #1608:
URL: https://github.com/apache/cordova-ios/issues/1608#issuecomment-3953686486

   I get the problems, when I add GoogleMaps to a plugin and add this plugin to a Cordova project. When I add GoogleMaps in XCode directly and not by the plugin, it works. What is the difference?


-- 
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-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] Preference `deployment-target` don't set the version in `Package.swift` [cordova-ios]

Posted by "dpogue (via GitHub)" <gi...@apache.org>.
dpogue commented on issue #1608:
URL: https://github.com/apache/cordova-ios/issues/1608#issuecomment-3953530781

   Just tested this and I was able to create a new Cordova project, add `<preference name="deployment-target" value="18.2" />` in config.xml, and build it with no issues.
   
   The Package.swift file in the root of the repository declares the supported versions for the CordovaLib framework, whereas the deployment target for a generated app is managed in the generated Xcode project.


-- 
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-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org