CocoaPods删除已安装的库

1、打开项目中的Podfile文件:

这里写图片描述

2、删除图中选中的那一行命令,即YYKit.
3、打开终端cd到当前项目的根目录下,执行如下命令:

pod install --verbose --no-repo-update

当命令运行完后项目中的YYKit就已经被移除.

命令执行过程如下:

fwwdeMacBook-Air:CocoaPodsDemo fww$ pod install --verbose --no-repo-update
  Preparing

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-CocoaPodsDemo`:
  (``)
  Using `ARCHS` setting to build architectures of target
  `Pods-CocoaPodsDemoTests`: (``)
  Using `ARCHS` setting to build architectures of target
  `Pods-CocoaPodsDemoUITests`: (``)

Finding Podfile changes
  R YYKit
  - AFNetworking
  - FMDB
  - GPUImage
  - JSONModel
  - Masonry
  - Reachability
  - Realm
  - SVProgressHUD

Resolving dependencies of `Podfile`

Comparing resolved specification to the sandbox manifest
  R YYKit
  - AFNetworking
  - FMDB
  - GPUImage
  - JSONModel
  - Masonry
  - Reachability
  - Realm
  - SVProgressHUD

-> Removing YYKit

Downloading dependencies

-> Using AFNetworking (3.1.0)

-> Using FMDB (2.7.2)

-> Using GPUImage (0.1.7)

-> Using JSONModel (1.7.0)

-> Using Masonry (1.1.0)

-> Using Reachability (3.2)

-> Using Realm (3.0.2)

-> Using SVProgressHUD (2.2.2)
  - Running pre install hooks

Generating Pods project
  - Creating Pods project
  - Adding source files to Pods project
  - Adding frameworks to Pods project
  - Adding libraries to Pods project
  - Adding resources to Pods project
  - Linking headers
  - Installing targets
    - Installing target `AFNetworking` iOS 7.0
    - Installing target `FMDB` iOS 4.3
    - Installing target `GPUImage` iOS 5.0
    - Installing target `JSONModel` iOS 6.0
    - Installing target `Masonry` iOS 6.0
    - Installing target `Reachability` iOS 6.0
    - Installing target `Realm` iOS 8.0
    - Installing target `SVProgressHUD` iOS 8.0
    - Installing target `Pods-CocoaPodsDemo` iOS 11.1
    - Installing target `Pods-CocoaPodsDemoTests` iOS 11.1
    - Installing target `Pods-CocoaPodsDemoUITests` iOS 11.1
  - Running post install hooks
  - Writing Xcode project file to `Pods/Pods.xcodeproj`
    - Generating deterministic UUIDs
  - Writing Lockfile in `Podfile.lock`
  - Writing Manifest in `Pods/Manifest.lock`

Integrating client project

Integrating target `Pods-CocoaPodsDemo` (`CocoaPodsDemo.xcodeproj` project)

Integrating target `Pods-CocoaPodsDemoTests` (`CocoaPodsDemo.xcodeproj` project)

Integrating target `Pods-CocoaPodsDemoUITests` (`CocoaPodsDemo.xcodeproj` project)
  - Running post install hooks
    - cocoapods-stats from
    `/Library/Ruby/Gems/2.3.0/gems/cocoapods-stats-1.0.0/lib/cocoapods_plugin.rb`

Sending stats
      - AFNetworking, 3.1.0
      - FMDB, 2.7.2
      - GPUImage, 0.1.7
      - JSONModel, 1.7.0
      - Masonry, 1.1.0
      - Reachability, 3.2
      - Realm, 3.0.2
      - SVProgressHUD, 2.2.2

-> Pod installation complete! There are 8 dependencies from the Podfile and 8 total pods installed.

[!] Automatically assigning platform ios with version 11.1 on target CocoaPodsDemo because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
fwwdeMacBook-Air:CocoaPodsDemo fww$ 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值