您好,欢迎来到伴沃教育。
搜索
您的当前位置:首页The dependency **** is not used

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 填写工程的名字。

Copyright © 2019- bangwoyixia.com 版权所有 湘ICP备2023022004号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务