what is the usage of “~>” in cocoapods

后端 未结 4 1776
一整个雨季
一整个雨季 2020-12-24 04:47

I want to know what the \"~>\" is used for,cause I find they are the same below:

pod \'AFNetworking\',\'~> 2.0.3\'

pod \'AFNetworking\',\'2.0.3\'
         


        
4条回答
  •  温柔的废话
    2020-12-24 05:26

    • ~> 6.0 will get you the latest version before the next version which is 7.0 but not including the 7.0 version.

    • ~> 6.0.0 will get you the latest version before the next version which is 6.1.0 but not including the 6.1.0 version.

提交回复
热议问题