jaybowman opened a new issue #1093:
URL: https://github.com/apache/cordova-ios/issues/1093


   # Bug Report
   When adding a plugin that has a podspec defined the perference 
deployment-target is not used for the creation of the podfile. 
   ## Problem
   
   ### What is expected to happen?
   When adding a plugin with a podspec tag in the plugin.xml a podfile is 
created, this works. But Looking at the cordova code (api.js) when a  
<perferance name ="deployment-target" value="13.0" /> tag is present in the ios 
platform section of the applications config.xml the podfile created should have 
"platform :ios, '13.0'" but it is always being set to the default "10.0" for 
cordova-ios 5.1.1.
   
   ### What does actually happen?
   The podfile created from the plugin add always defaults to the cordova-ios 
ios version default value. The depoyment-target set in the config.xml is not 
making it to the cordova-common api.js where the plugin add code is.
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   My plugin has a framework requirement of ios 13 or greater. I can edit the 
podfile and then run "pod install" cocoapods does the install without an error. 
 
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   plugin with podspec, have <perferance name ="deployment-target" value="13.0" 
/> in your apps config.xml
   cordova plugin add my-plugin
   cordova platform add ios
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   Mac OS 11.2.3
   
   
   ### 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.
   -->
   cordova 10.0.0
   cordova-ios > 5.1
   npm 6.14.11
   mac os 11.2.3
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [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
   


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to