Bradley Thomas
Bradley Thomas

Reputation: 4097

CocoaPods platform, what does it mean exactly?

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

Upvotes: 24

Views: 6347

Answers (1)

johnpatrickmorgan
johnpatrickmorgan

Reputation: 2372

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.

Upvotes: 7

Related Questions