[iOS][Cocoapods] Setting deployment-target doesn't change the iOS version in Podfile
See original GitHub issueHi,
I’m working on a plugin which is only working for iOS 10 and superior.
I try to set the deployment-target
preference but it doesn’t seem to update the value platform :ios, '8.0'
in the Podfile.
By checking the code it should be working:
https://github.com/apache/cordova-ios/blob/46da4bc34495ec7bfe13c1ec1b4074dd2e82641a/bin/templates/scripts/cordova/lib/Podfile.js#L36 and https://github.com/apache/cordova-ios/blob/2cd93097ec5d5989bc758f15db75011829c84c2b/bin/templates/scripts/cordova/Api.js#L271
Env: Mac OS 10.14.1 cordova 8.1.2 (cordova-lib@8.1.1) cordova-ios 4.5.5
It may be related to https://github.com/apache/cordova-ios/pull/335
Regards,
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Set deployment target for CocoaPods's pod - Stack Overflow
pod update is setting the deployment target of the pod to iOS 4.3 because that is the default deployment target if the podspec...
Read more >Xcode 12 minimum deployment target #9936 - GitHub
I would open up the Xcode UI go to a target of a pod and see what the deployment target has evaluated to....
Read more >Project deployment target and Coco… - Apple Developer
Project deployment target and Cocoapod target version Let me suppose that I have an Xcode project that uses the following Cocoapods. use_frameworks! use_ ......
Read more >Xcode 12 drops support for iOS 8 and how to fix deployment ...
This will remove all deployment target settings from all of the pods in your project, which allows them to simply inherit the project/workspace ......
Read more >How To Manage Dependencies With CocoaPods - Cocoacasts
Update the project's Podfile by removing CocoaLumberjack from the Podfile and lowering the version of Alamofire. platform :ios, '9.0' target 'Notes' do ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@shazron do you know any ETA for when this change will be released?
@mohlsen Have now 😉
My ‘workaround’ has been to run platform add separately. For example,
npm install
followed byionic cordova platform add ios@5.0.0