cocoapods 编辑Podfile
pod 下,vim podfile
编辑文件,没有文件就自动在当前目录添加一个文件再编辑。platform :ios, '8.0'
target “target名称” do
pod 'AFNetworking', '~> 3.1.0'
end
按Esc退出编辑,然后按Shift +冒号,输入wq退出文件编辑。
终端输入:pod install
然后耐心等待下载第三方库。
over~
cocoapods 编辑Podfile
pod 下,vim podfile
编辑文件,没有文件就自动在当前目录添加一个文件再编辑。platform :ios, '8.0'
target “target名称” do
pod 'AFNetworking', '~> 3.1.0'
end
按Esc退出编辑,然后按Shift +冒号,输入wq退出文件编辑。
终端输入:pod install
然后耐心等待下载第三方库。
over~
本文标题:cocoapods 在终端编辑Podfile 文件
本文链接:https://www.haomeiwen.com/subject/wmpvcqtx.html
网友评论