Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "platform" in Pod File refer to?

Tags:

cocoapods

When you create a new pod file at the top there is "platform :ios, '9.0'" should I set this "platform" value to the deployment target of my project ?

like image 777
isJulian00 Avatar asked Aug 01 '19 20:08

isJulian00


2 Answers

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.

like image 160
Nishchith Avatar answered Oct 19 '22 22:10

Nishchith


It specifies the platforms and minimum version of those platforms that you want to support in the app.

See detailed docs at https://guides.cocoapods.org/syntax/podfile.html#platform

like image 21
Paul Beusterien Avatar answered Oct 19 '22 20:10

Paul Beusterien