關於Cocopods錯誤 is not used in any concrete target

今天從pods上獲取自己的代碼時候,出現下面這種錯誤

The dependency ``isnot used in any concrete target

仔細檢查了一下,是因爲自己電腦的pods版本大於公司的版本 

原來pods 可以這麼寫

platform :ios, '8.0'

pod 'AFNetworking'

現在高版本必須這麼寫

platform :ios, '7.0'

target "Ballinterest"do

pod 'AFNetworking'

end



或者按照官方給出的推薦

platform :ios,'8.0'

#use_frameworks!個別需要用到它,比如reactiveCocoa

target'MyApp'do  

pod'AFNetworking','~> 3.1.0'

end


然後:wq 推出 重新安裝下 完美解決

$ pod install --verbose--no-repo--update




發佈了28 篇原創文章 · 獲贊 5 · 訪問量 8萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章