使用cocoapods
2021-11-05 本文已影响0人
ios_暗夜行者
1、创建podfile
//在终端cd到项目目录,touch一个podfile文件
$ cd /users/wangzz/desktop/cocoapodstest
$ touch podfile
2、编辑podfile
platform:ios,'11.0'
target "DengTeng" do
#腾讯云cos 精简版 SDK
pod 'QCloudCOSXML/Transfer'
end

3、执行导入命令
准备工作都完成后,开始导入第三方库:
$ cd /users/wangzz/desktop/cocoapodstest
$ pod install