转载自: https://blog.csdn.net/wangjunling888/article/details/51820224
pod 'AFNetworking', '~> 1.0' 版本号可以是1.0,可以是1.1,1.9,但必须小于2
pod 'AFNetworking', '1.0' // 版本号指定为1.0
pod 'AFNetworking', //不指定版本号,任何版本都可以
注意: 在新版的Cocoapods中,必须要制定target 也就是你的项目名称!!!!!
#Uncomment this line to define a global platform for your project
# Uncomment thisline if you're using Swift or would like to use dynamic frameworks
pod 'JTNumberScrollAnimatedView', '1.0'
Besides no version, or a specific one, it is also possible touse logical operators: