what is the usage of "~>" in cocoapods
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]:
~> 6.0
will get you the latest version before the next version which is7.0
but not including the7.0
version.~> 6.0.0
will get you the latest version before the next version which is6.1.0
but not including the6.1.0
version.
ð
~>
(the optimistic operator) is used when you want to specify a version 'up to next major | minor | patch'. For example:
~> 0.1.2
will get you a version up to 0.2 (but not including 0.2 and higher)
~> 0.1
will get you a version up to 1.0 (but not including 1.0 and higher)
~> 0
will get you a version of 0 and higher (same as if it was omitted)
where 0.1.2
would mean 'I want this exact version'
Here is some more info on this