The dependency `XXXX` is not used in any concrete target.
来源:互联网 发布:平板splashtop优化 编辑:程序博客网 时间:2024/05/21 14:56
在使用cocoapod安装依赖库的时候经常会报这个错误,如果遇到这个错误,需要在podfile中添加两行:
target:"PodDemo" do
end
注意:这里的PodDemo要写成你的工程文件名,我的工程文件名为PodDemo,我要添加AFNetWorking依赖的话,最终我的Podfile要写成这样:
source 'https://github.com/CocoaPods/Specs.git'platform :ios, '7.0'target:"PodDemo" dopod 'AFNetworking', '~> 2.5'end
///////////////////////////补充分割线////////////////////////////////////
补充一下昨天写的:
如果项目还需要依赖其他库的话,只需要在pod XXXX下面一行添加相同格式的内容即可。
比如,你还需要依赖MBProgressHUD的话,需要完成以下4步:
Step1—>在终端中运行
pod search MBProgressHUD
来查看它的引用信息,最后打印出了很多相关的库如下:
Step2—>从中找到你要引用的库,在上图中是第一个库,从中复制pod …这一行:
pod 'MBProgressHUD', '~> 0.9.2'
Step3—>然后使用命令pod -a Xcode Podfile命令打开Podfile,添加这一行到文件中如下:
source 'https://github.com/CocoaPods/Specs.git'platform :ios, '7.0'target:"PodDemo" dopod 'AFNetworking', '~> 2.5'pod 'MBProgressHUD', '~> 0.9.2'end
好了,然后保存,退出。
Step4—>使用命令
pod update
更新你的Podfile,这个过程会非常的漫长,我是打了大概5局炉石传说之后更新成功的,大概一个小时。
结果截个图:
1 0
- The dependency `XXXX` is not used in any concrete target.
- The dependency `AFNetworking ` is not used in any concrete target
- The dependency `AFNetworking` is not used in any concrete target.
- The dependency `Masonry` is not used in any concrete target.
- The dependency `***` is not used in any concrete target.
- The dependency `AFNetworking ` is not used in any concrete target
- The dependency `MBProgressHUD` is not used in any concrete target.
- cocoaPods "xxxx is not used in any concrete target"
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- cocoapod的报错处理:The dependency `xxx` is not used in any concrete target.
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods error:The dependency '' is not used in any concrete target
- iOS - 报错 The dependency `xxx` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking (~> 3.0.4s)` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- iOS CocoaPods 报错: The dependency `UMengSocialCOM (~> 5.2.1)` is not used in any concrete target.
- 微信语音连播的实现思路
- RxJava操作符之Transforming Observables
- 软件常用问题
- JDBC 访问数据库
- 线性时间内筛素数+欧拉函数+莫比乌斯函数
- The dependency `XXXX` is not used in any concrete target.
- 简单排序之冒泡排序
- linux mysql中文乱码问题解决方式
- Linux C第一课
- 单链表查找倒数第k个元素
- 我的Ubuntu安装使用openCV记录(3)——for QT
- opencv-视频处理-实时前景检测-阈值法
- 【bzoj2109&&2535】[Noi2010]Plane 航空管制 拓扑排序+贪心
- LinearLayout