Cocoapods 源码浅析 - 从 pod 命令开始

栏目: IT技术 · 发布时间: 6年前

内容简介:当看到这篇博客,相信你已经不再困惑与 Cocoapods 如何使用,而是 Cocoapods 是如何实现的。我也有这样的好奇,其实 Cocoapods 源码一直在断断续续的读,决定好好梳理一下。环境信息Cocoapods 1.9.0.beta.2 (f1293b7)

当看到这篇博客,相信你已经不再困惑与 Cocoapods 如何使用,而是 Cocoapods 是如何实现的。我也有这样的好奇,其实 Cocoapods 源码一直在断断续续的读,决定好好梳理一下。

环境信息

Cocoapods 1.9.0.beta.2 (f1293b7)

Core 1.9.0.beta.2 (95e133d)

快过年了,01.22 之前完成。

目标

先从最简单的日常使用来看,比如项目引入 AFNetworking 和 SDWebImage :

  1. 执行 pod init 生成 Podfile(或者自己创建一个 Podfile)
  2. 书写 Podfile
  3. 执行 pod install (除此之外,还有一个命令叫 pod update )
  4. 打开 .xcworkspace ,结束

比较感兴趣的是:

  1. Podfile 是什么?(之前写了一篇Podfile 解析最佳实践 有提到 Podfile 是什么,以及如何自己解析 Podfile,所以这篇文章不会再提)
  2. pod install 做了什么事情?
  3. .xcworkspace 是如何生成的?
  4. pod install 与 pod update 有什么区别?
  5. 生成的新文件中,还有一个叫 Podfile.lock ,它的作用是什么?

以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。

Introduction to the Design and Analysis of Algorithms

Introduction to the Design and Analysis of Algorithms

Anany Levitin / Addison Wesley / 2006-2-24 / USD 122.00

Based on a Based on a new classification of algorithm design techniques and a clear delineation of analysis methods, "Introduction to the Design and Analysis of Algorithms" presents the subject in a c......一起来看看 《Introduction to the Design and Analysis of Algorithms》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

MD5 加密
MD5 加密

MD5 加密工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具