Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoapods platform, what does it mean exactly?

Tags:

It is unclear to me what effect changing the platform value will have, can someone elaborate? Will this simply mean that an error gets thrown if minimum version requirements for a library are not met?

https://guides.cocoapods.org/syntax/podfile.html#platform

enter image description here

like image 882
Brad Thomas Avatar asked Jun 12 '15 15:06

Brad Thomas


People also ask

What is CocoaPods used for?

Cocoapods is an application level dependency manager that runs on objective-c, swift, and any other programming languages that run on Objective-C. It focuses on source-based distribution of third party code and allows automatic integration to your Xcode projects.

What does platform mean in Podfile?

It specifies the minimum OS version you are going to support for the pod project. If your applications project's deployment target is less than the pod project mentioned iOS version, you will get a warning if there any any APIs which are deprecated in the supported OS versions in the main project.

Is CocoaPods a library?

CocoaPods has over 82,000+ libraries and counting, and is being used in over three million apps. You can choose to create either a public or a private third-party library. A public library can used by others who could then suggest improvements to your code.

What is Apple CocoaPods?

CocoaPods is an application level dependency manager for Objective-C, Swift and any other languages that run on the Objective-C runtime, such as RubyMotion, that provides a standard format for managing external libraries.


1 Answers

Yes, if POD A supports iOS 4.0 and has a dependency on POD B which only supports iOS 7.0, an error will be thrown when trying to publish the POD A's pod spec.

It will also be used to populate the iOS Deployment Target build setting for the Pods target.

like image 118
johnpatrickmorgan Avatar answered Nov 13 '22 05:11

johnpatrickmorgan