pod》error:The dependency `` is not used in any concrete target

內(nèi)容提要:

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

以下從三個步驟陳述:

1. Podfile升級

查看pod版本:

pod --version

pod 升級(此時是升級到1.0.0.beta.2版本):

sudo gem install cocoapods --pre

2. 錯誤內(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)錯誤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 040777

Re-creating CocoaPods due to major version update.

Updating local specs repositories

Analyzing 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

復制代碼

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

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

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

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