CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
来源:互联网 发布:hashcode源码 编辑:程序博客网 时间:2024/05/22 20:28
- 1
- 2
- 1
- 2
- CocoaPods再遇困难,前几天电脑重装了系统,所有的开发工具就都装了最新的,当我用CocoaPods的时候,出了一个提示,大概就是我的版本不是 last version,然后给你提示了一个命令,直接复制即可,就是下面这个:
- 1
- 1
安装cocoapods的预览版本,就会更新下来新的1.0.0.beta.2版本,如下所示:
- 1
- 2
- 1
- 2
很高兴啊,更新了新的版本,然而pod install就出错了,悲了个剧!出错如下:
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
我用的三方库比较多,挺长的,出这个错是告诉我们我们所用的库没有指定target,它不知道用在哪里,所以就给报错了,然后我去了cocoapods的官网看了下,cocoapods官网地址
官网是这样给推荐的:
在创建Podfile的时候,用这种格式使用,
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 里面的 MyApp 记得替换为自己攻城里面的target。这样就基本OK了,执行pod install / pod update 就都可以了。(use_frameworks! 这个是个别需要的,这里修改一下,可以把我上面的代码中的这一行【删除】)
下面是另外一种写法,
0 0
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` 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
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- 安装CocoaPods报错,The dependency AFNetworking (~> 3.1.0) is not used in any concrete target
- Tomcat 启动时报 to the cache because there was insufficient free space available after evict
- astyle linux美化代码
- 求1000以内的回文数
- 【MySQL】性能优化之 Index Condition Pushdown
- Vue的加载顺序探讨(一)
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- Ngrok让你的本地Web应用暴露在公网上
- 控制行式填报表下拉日历是否可写
- 图片的等比例压缩和质量压缩,图片转化成FILE
- 在visio studio中添加项目并查看网页
- 分区表与索引的管理
- Laravel框架5.*自定义常量的方法
- SLAM笔记一——入门介绍
- C内存模型-BSS段、数据段、代码段、堆与栈