CocoaPods的安装和使用

贴个地址:http://www.jianshu.com/p/9e4e36ba8574
ps.后面pod install的时候会提示:pod install 出错 The dependency AFNetworking (~> 2.6.0) is not used in any concrete target.
原因是:
低版本的cocoapods的Podfile文件pod install可以正常运行

platform :ios, '8.0'
pod 'AFNetworking'

高版本的cocoapods的Podfile文件必须添加target

platform :ios, '8.0'
target "targetName" do
pod 'AFNetworking'
end

你可能感兴趣的:(CocoaPods的安装和使用)