iOS CocoaPods 报错: The dependency `UMengSocialCOM (~> 5.2.1)` is not used in any concrete target.

来源:互联网 发布:迈普1800抹除数据 编辑:程序博客网 时间:2024/04/29 12:02

当用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 'Share' do

  pod 'UMengSocialCOM', '~> 5.2.1'

end


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


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

0 0
原创粉丝点击