You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/03/25 16:08:11 UTC

[GitHub] [cordova-ios] rossholdway opened a new issue #580: [iOS][Cocoapods] Podfile deployment-target is not updated on cordova prepare

rossholdway opened a new issue #580: [iOS][Cocoapods] Podfile deployment-target is not updated on cordova prepare
URL: https://github.com/apache/cordova-ios/issues/580
 
 
   # Bug Report
   Issue #468 was recently fixed, however the `deployment-target` preference only applies if you run `cordova plugin add ...` and not when running `cordova prepare`.
   
   ## Problem
   `cordova prepare` does not update the Podfile with the value specified in the config.xml `deployment-target` prefrence.
   
   ### What is expected to happen?
   The Podfile should contain the value specified in the config.xml `deployment-target` preference after running `cordova prepare`.
   
   ### What does actually happen?
   The Podfile is not updated with the value specified
   
   ### Steps to reproduce
   1. `cordova create MyApp`
   2. Edit config.xml and set deployment-target preference
   ```
   ...
     <platform name="ios">
       ...
       <preference name="deployment-target" value="10.0" />
     </platform>
   ...
   ```
   3. `cordova platform add ios@5.0.0`
   4. View platforms/ios/Podfile. The iOS platform will be `10.0`
   5. Remove `platforms` and `plugins` folders
   6. Run `cordova prepare`
   7. View platforms/ios/Podfile. The iOS platform will be `9.0`. **I'd expect it to be 10, as specified in config.xml**
   
   ### Version information
   Cordova iOS v5.0.0
   Cordova CLI v9.0.0
   <!-- 
   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] -->
   
   - [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:
users@infra.apache.org


With regards,
Apache Git Services

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