question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS][Cocoapods] Setting deployment-target doesn't change the iOS version in Podfile

See original GitHub issue

Hi, 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:closed
  • Created 5 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
radiantspacecommented, Jan 11, 2019

@shazron do you know any ETA for when this change will be released?

1reaction
rossholdwaycommented, Mar 25, 2019

@mohlsen Have now 😉

My ‘workaround’ has been to run platform add separately. For example, npm install followed by ionic cordova platform add ios@5.0.0

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found