Pod 'AFNetworking' // not explicitly specify the dependency library version, meaning that the latest version of pod 'AFNetworking' is obtained every time, '~>0' // higher than 0, writing this restriction is the same as writing nothing. '~> 0.1.2' // use pod 'AFNetworking' of a version greater than 0.1.2 but less than 0.2, '~>0.1' // use pod 'AFNetworking' >0.1 but less than 1.0, '2.0' // only use pod 'AFNetworking' of version 2.0, '= 2.0' // only use pod 'AFNetworking' of version 2.0, '> 2.0' // Use pod 'AFNetworking' of a version later than version 2.0, '>= 2.0' // use pod 'AFNetworking' with a version greater than or equal to 2.0, '< 2.0' // use pod 'AFNetworking' with a version less than 2.0, '< = 2.0 / / use less than or equal to 2.0 version of the pod' AFNetworking ', : git = > 'http://gitlab.xxxx.com/AFNetworking.git', :branch => 'R20161010' // Specify branch pod 'AFNetworking', :path => '.. / AFNetworking '/ / specified local library [https://www.jianshu.com/p/eaaa6d71f8c6] (https://www.jianshu.com/p/eaaa6d71f8c6)Copy the code