CocosPod 简单实用介绍

时间:2015-05-30 01:49:06   收藏:0   阅读:931

1、下载第三方框架

1. 搜索第三方框架

# 搜索第三方框架(可只包含部分框架名例如: AFN)

$ pod search AFN

# 创建 Podfile

$ echo "pod ‘AFNetworking‘ " > Podfile

# 安装 Pod

$ pod install

2. 将CocosPod 加入源代码管理器

# 查看元旦库状态,红色部分是没有受源代码管理的文件 ‘?‘

$ git status

# 将新添加的文件添加到元代码库管理

$ git add .

# 查看源代码库状态,绿色部分是加入元代管理的文件 ‘A’

$ git status

# 提交修改,并编写注释

$ git commit -m "添加 AFN 框架"

# 查看源代码库状态,nothing to commit, working directory clean 表示所有文件都已经提交至代码仓库管理

$ git status




原文:http://blog.csdn.net/wangxiaoit/article/details/46247665

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!