cocoaPods的使用:
cd +文件名路徑
vim Podfile
i
platform:iOS,’6.0’
target:’cocoaPods’ do
pod ‘AFNetworking’
end
按住esc,shift+:wq
pod install(等待) 安裝<以后增加框架和修改框架,在vim Podfile; pod update>
不寫版本號會默認是最新的
2.刪除項目中的框架:在這個地方直接刪除不需要的框架就行,然后在終端pod supdate或者pod install就行
以后用到了cocoapods,打開項目就在這里打開就行
建立Podfile(配置文件)
$vim Podfile
鍵盤輸入 i 進入編輯模式,輸入
platform :ios, '7.0'
target 'Podss' do
pod 'AFNetworking', '~> 2.6'
pod 'ORStackView', '~> 3.0'
end
然后按Esc,并且輸入“ :”號進入vim命令模式,然后在冒號后邊輸入wq
再輸入$pod install
如果出現(xiàn)報錯 則輸入
$ pod install --verbose --no-repo-update
到此pod安裝以及使用到此結(jié)束