what is the usage of “~>” in cocoapods

后端 未结 4 1797
一整个雨季
一整个雨季 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:22

    optimistic operator ~>:

    '~> 0.1.2' Version 0.1.2 and the versions up to 0.2, not including 0.2 and higher
    '~> 0.1' Version 0.1 and the versions up to 1.0, not including 1.0 and higher
    '~> 0' Version 0 and higher, this is basically the same as not having it.
    For more information, regarding versioning policy, [see][1]:
    

提交回复
热议问题