CocoaPods 使用的简单化

一般网上的CocoaPods 使用过程都能实现 ,但是 啰嗦 ,操作麻烦 ,我给大家写个简单点

JJCao 原创 笔记  转载请说明

第一步: 先终端搜索 cocoa pods 支持这个框架不? 如

pod search AFNetworking

第二步:拖进你项目的总文件夹 如 cd空格你项目的总文件夹 (我这个项目是test)

cd /Users/tarena/Desktop/test 

第三步: 创建Podfile文件

pod init

第四步: 打开项目里的Podfile文件,输入红色的那句

# Uncomment this line to define a global platform for your project

# platform :ios, '8.0'

# Uncomment this line if you're using Swift

# use_frameworks!

target 'gg' do

pod 'AFNetworking'  

end

target 'ggTests' do

end

target 'ggUITests' do

end

// 第五步 : 不更新安装 快一点

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

// 或者 pod install  更新安装 

// 完事后 ,打开你项目 运行 装好的.xcworkspace文件

 

// 第四步说明:

当前电脑最高版本

8.0位置填你当前电脑版本,如我的是10.10.5的版本 ,可以写8.0    9.0 等

// 下面这些是 测试项目用的 ,如你项目里有 就留着 ,没有就删了 (其实删不删无所谓) 

target 'ggTests' do

end

target 'ggUITests' do

end

posted @ 2016-03-22 14:38  JJCao  阅读(403)  评论(0编辑  收藏  举报