今天從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