CocoaPods报错 The dependency is not used in any correct target

来源:互联网 发布:linux实现ftp文件共享 编辑:程序博客网 时间:2024/06/06 09:50

比如你的Podfile中是这样写的

platform :ios, '8.0'pod 'AFNetworking', '~> 2.6'


在pod install 时
可能会出现错误  The dependency ‘AFNetworking(~2.2)’ is not used in any concrete target.


对应方法:

platform :ios, '8.0'target 'MyFirstApp' do    pod 'AFNetworking', '~>2.6'end

这时再pod install 即可





阅读全文
0 0
原创粉丝点击