cocoa pods 報[!] The dependency `SDWebImage (~> 2.7)` is not used in any concrete target.

前一段時間爲公司新買的Mac安裝cocoa pods ,發現在管理工程時報[!] The dependency `SDWebImage (~> 2.7)` is not used in any concrete target.等第三方相關錯誤,查閱相關資料,才知道原來是Podfile格式錯誤,之前我們用的是

platform :ios, '7.0'
pod "SDWebImage", "~> 2.0"

現在官網推薦用這樣的格式

platform :ios, '8.0'

//use_frameworks!

target 'People' do

 pod 'SDWebImage', '~> 2.6'      

end

注意!!!!

target 'People'中的People爲自己項目的名字

如果在[!] The dependency `SDWebImage (~> 2.7)` is not used in any concrete target.這句的上面提示cocoa pods的版本問題時,只需要將提示的命令

sudo gem install cocoapods --pre

複製粘貼按enter即可,就會下載新的cocoapods版本




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章