iOS CocoaPods 报错: The dependency `*****` is not used in any concrete target.

当用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 `*****` is not used in any concrete target.)