美文网首页
iOS CocoaPods 报错: The dependency

iOS CocoaPods 报错: The dependency

作者: 孟维学 | 来源:发表于2016-08-14 16:36 被阅读21次

当用CocoaPods时出现了下面的错误时:

[!] The dependency `UMengSocialCOM (~> 5.2.1)` is not used in any concrete target.

[!] The dependency `AFNetworking (~> 2.0)` is not used in any concrete target.

在创建Podfile的时候,使用下面的格式:

platform :ios, '9.0'

use_frameworks!

target '工程名' do

pod 'UMengSocialCOM', '~> 5.2.1'

end

里面的Share需要替换为自己创建的工程名字。

然后执行pod install / pod update 就可以了。

相关文章

网友评论

      本文标题:iOS CocoaPods 报错: The dependency

      本文链接:https://www.haomeiwen.com/subject/uzbysttx.html