The dependency `AFNetworking ` is not used in any concrete target

来源:互联网 发布:history linux 编辑:程序博客网 时间:2024/06/05 23:41
1、参考的别人的总结(点击打开连接)

2.CocoaPods 的使用步骤总结: 

1、cd一定要记得   cd  ,让CocoaPods 找得到路径,不然会出错,很关键)  +  拖入工程文件夹

2、$ touch Podfile

3、$ open -a Xcode Podfile

4、用xcode打开以后  输入如下内容 

platform :ios, '7.0'use_frameworks!target "PodText" dopod 'AFNetworking','~>3.1.0'pod 'MJRefresh', '~> 3.1.0'end

解说:

第一行    7.0 是项目版本号  

第二行 就照上面这么写

第三行     PodText  是项目名字  

第四五行 需要添加的第三方

第五行 也照上面这么写


5、$ pod install --verbose --no-repo-update




3.常用命令  搜索命令:  $ pod search AFNetworking

4.移除  CocoaPods  : http://www.cnblogs.com/daguo/p/4111475.html


0 0
原创粉丝点击