前提是你的Cocoapods已經(jīng)安裝了
1.CD 你的項(xiàng)目下邊
? ? vi Podfile
2.然后輸入
? ? platform:ios,'8.0'
? ? #use_frameworks!個(gè)別需要用到它,比如reactiveCocoa
? ? target'MyApp'do
? ? pod'AFNetworking','~> 3.0'
? ? end
3.里面的MyApp記得替換為自己攻城里面的target。這樣就基本OK了,執(zhí)行pod install / pod update 就都可以了。