cocoapods的使用

来源:互联网 发布:原生js模拟select 编辑:程序博客网 时间:2024/06/06 18:26

cocoapods使用:

pod search Masonry查看Masonry版本,按q退出(第一次查询时间较长)

1cd到工程目录下

  ~ cd /Users/yunmeiios/Desktop/TestProject 

2、创建Podfile文件

  TestProject git:(master) vim Podfile

编辑:

platform :ios,'8.0'(支持系统)

target 'Test' do(项目名称)

pod 'MJExtension', '~> 3.0.13'(添加库,版本)

end

esc—>:wq保存退出

3、安装

  TestProject git:(master) pod install

输出:

Analyzing dependencies

Downloading dependencies

Installing Masonry (1.1.0)

Generating Pods project

Integrating client project

结束

原创粉丝点击