步骤一:切换到TestDemo项目文件夹(包含TestDemo.xcodeproj这个文件)
cd /Users/zhangbin/Desktop/TestDemo
步骤二:初始化pod
pod init
步骤三:先搜索用到的框架,比如FBMemoryProfiler,能搜索到最新和历史的版本
pod search FBMemoryProfiler

image.png
步骤四:编辑Podfile文件
vim Podfile
步骤五:在Podfile文件中加上用到的插件,然后保存退出。
pod 'FBMemoryProfiler','0.1.3'

image.png
步骤六:安装不更新
pod install --verbose --no-repo-update