Why do I need to install the platform in cocoapods?

I just recently started working with cocoa pods (I had to do this a long time ago), and they are interested in what the platform should mean. For example, right now I have platform :ios, 8.0 (there are marks around 8.0, but I don’t know how to avoid them in the editor), which tells me that the minimum version of the code with these dependencies is iOS 8.0. A few questions.

  • Is my intervention right on the platform? If not what the platform really does?
  • Does this mean that it will be installed only on version 8.0? If so, how can I say that version 8.0 and all higher versions?
  • So when ios version 9.0 comes out, some dependencies don't work with ios 9.0. Do I need to place platform ios: 9.0 under the list of dependencies for 8.0 and add another list of dependencies for 9.0 to work with?

This time enough questions. Thank you for your help.

Example number 3

 platform :ios, '8.0' target 'my target' do //list of pods end platform: ios, `9.0` target `my target` do //list of pods end 
+6
source share

All Articles