1、cd 到项目app根目录下
2、touch Podfile
3、vim Podfile
这块举个例子编辑: 点击i进入编辑模式,复制粘贴
platform :ios, '7.0'
target 'MyApp' do
pod 'AFNetworking', '~> 3.1.0'
end
esc 退出编辑模式,wq保存退出
4、pod install
1、cd 到项目app根目录下
2、touch Podfile
3、vim Podfile
这块举个例子编辑: 点击i进入编辑模式,复制粘贴
platform :ios, '7.0'
target 'MyApp' do
pod 'AFNetworking', '~> 3.1.0'
end
esc 退出编辑模式,wq保存退出
4、pod install
本文标题:iOS 新项目添加cocoapods
本文链接:https://www.haomeiwen.com/subject/mlcadltx.html
网友评论