项目中使用到以下第三方框架

  • AFNetworking
  • SDWebImage
  • SVProgressHUD
  • SnapKit

Pod 安装

  • git 备份
  • 打开终端
  • $ cd 进入项目目录
  • 输入以下终端命令建立或编辑 Podfile
$ pod init
  • 将 Podfile 拖入 Xcode 输入以下内容
use_frameworks!
platform :ios, '8.0'
pod 'AFNetworking'
pod 'SDWebImage'
pod 'SVProgressHUD'
pod 'SnapKit'
  • 输入以下命令安装第三方框架
$ pod install --no-repo-update
  • 如果第三方框架不能正常工作或者升级,可以输入以下命令更新
$ pod update --no-repo-update
  • 在 Swift 项目中,cocoapod 仅支持以 Framework 方式添加框架,因此需要在 Podfile 中添加 use_frameworks!

相关文章:

  • 2021-12-31
  • 2021-10-20
  • 2021-11-20
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-11-09
猜你喜欢
  • 2021-11-20
  • 2021-04-18
  • 2022-02-13
  • 2021-09-18
  • 2021-09-28
相关资源
相似解决方案