歡迎關(guān)注微信公眾號(hào):全棧工廠
v1.0.0版本CocoaPods之后pod install 報(bào)錯(cuò):
[!] The dependency `RxSwift (~> 2.5.0)` is not used in any concrete target.
The dependency `RxCocoa (~> 2.5.0)` is not used in any concrete target.
The dependency `SnapKit (~> 0.30.0.beta1)` is not used in any concrete target.
我的Podfile內(nèi)容:
platform :ios, '8.0'
use_frameworks!
pod 'RxSwift', '~>2.5'
pod 'RxCocoa', '~> 2.5.0'
pod 'SnapKit', '~> 0.30.0.beta1'
原來(lái)新版本CocoaPods強(qiáng)制要求Podfile必須指明target吧史,否則報(bào)錯(cuò)唠雕,Podfile內(nèi)容修改為:
target '**' do
platform :ios, '8.0'
use_frameworks!
pod 'RxSwift', '~>2.5'
pod 'RxCocoa', '~> 2.5.0'
pod 'SnapKit', '~> 0.30.0.beta1'
end
即可!
注:文中如有任何錯(cuò)誤钞脂,請(qǐng)各位批評(píng)指正捕儒!