您的当前位置:首页正文

The dependency **** is not used

来源:图艺博知识网

当终端执行

pod install

终端报错:

The dependency * is not used in any concrete target.

原因:
CocoaPods升级到最新版本(包括一些高版本),Podfile文件的内容必须明确指出所用第三方库的targetName.低版本和高版本写法不一样.

低版本:

platform :ios, '8.0'
pod 'MBProgressHUD', '~> 0.9.2'

高版本:

platform :ios, '8.0'
target "targetName" do
pod 'MBProgressHUD', '~> 0.9.2'
end

注意:这里的 targetName 填写工程的名字。

Top