安裝好之后姜盈,新建工程打開終端
1.cd? 到項目地址?? ? ? ? ? ?? ~ git:(master) ?cd /Users/jiangchen/Desktop/111/demo2
2.打開vim編輯器? vim podfile? 輸入i進入編輯操作
platform :ios, '8.0'
#use_frameworks!個別需要用到它低千,比如reactiveCocoa
def pods
pod 'AFNetworking', '~> 2.6'
end
target 'MyApp'do
pods
end
點擊esc退出編輯 點擊冒號(:)輸入wq保存退出,
安裝 pod install
打開工程發(fā)現(xiàn)已經(jīng)安裝了?