CocoaPods報(bào)錯(cuò):The dependency `` is not used in any concrete target

報(bào)錯(cuò)描述: podfile升級(jí)之后到最新版本,pod里的內(nèi)容必須明確指出所用第三方庫(kù)的target,否則會(huì)出現(xiàn)The dependency `` is not used in any concrete target這樣的錯(cuò)誤。

解決方法:
以下從三個(gè)步驟陳述:
1. Podfile升級(jí)
查看pod版本:
pod --version

pod 升級(jí)(此時(shí)是升級(jí)到1.0.0.beta.2版本):
sudo gem install cocoapods --pre

2. 錯(cuò)誤內(nèi)容:
我的Podfile的內(nèi)容是:
platform :ios, ‘7.0‘pod ‘ReactiveCocoa‘, ‘2.1.8‘pod ‘objectiveflickr‘, ‘2.0.4‘pod ‘LinqToObjectiveC‘, ‘2.0.0‘pod ‘SDWebImage‘, ‘3.6‘

pod install后出現(xiàn)錯(cuò)誤The dependency `` is not used in any concrete target
pod install/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb:213: warning: Insecure world writable dir /Applications/Cocos/tools/ant/bin in PATH, mode 040777Re-creating CocoaPods due to major version update.Updating local specs repositoriesAnalyzing dependencies[!] The dependency ReactiveCocoa (= 2.1.8) is not used in any concrete target.The dependency objectiveflickr (= 2.0.4) is not used in any concrete target.The dependency LinqToObjectiveC (= 2.0.0) is not used in any concrete target.The dependency SDWebImage (= 3.6) is not used in any concrete target.

3. 修改方法:
Podfile內(nèi)容更改:

platform :ios, ‘7.0‘

target "RWTFlickrSearch" do

pod ‘ReactiveCocoa‘, ‘2.1.8‘
pod ‘objectiveflickr‘, ‘2.0.4‘
pod ‘LinqToObjectiveC‘, ‘2.0.0‘
pod ‘SDWebImage‘, ‘3.6‘

end

這樣再運(yùn)行pod install,就會(huì)成功了。

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

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

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