podfile升級之后到最新版本,pod里的內(nèi)容必須明確指出所用第三方庫的target,否則會出現(xiàn)The dependency `` is not used in any concrete target這樣的錯誤。

以下從三個步驟陳述:

1. Podfile升級

查看pod版本:

pod --version

pod 升級(此時是升級到1.0.1版本):

sudo gem install cocoapods --pre

2. 錯誤內(nèi)容:

我的Podfile的內(nèi)容是:

platform :ios, '7.0'

pod 'XMPPFramework'

end

pod install后出現(xiàn)錯誤The dependency `` is not used in any concrete target


The dependency `XMPPFramework? is not used in any concrete target.


3. 修改方法:

Podfile內(nèi)容更改:

platform :ios, '7.0'

target "XMPPTest" do

pod 'XMPPFramework'

end

這樣再運行pod install,就會成功了。

從http://www.cnblogs.com/Xylophone/p/5112841.html轉載

最后編輯于
?著作權歸作者所有,轉載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容