美文网首页
【iOS】CocoaPods 升级到v1.0.0后pod ins

【iOS】CocoaPods 升级到v1.0.0后pod ins

作者: liqingbiubiu | 来源:发表于2016-05-26 19:00 被阅读138次

v1.0.0版本CocoaPods之后pod install 报错:

[!] 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内容:

platform :ios, '8.0'
use_frameworks!
pod 'RxSwift',  '~>2.5'
pod 'RxCocoa', '~> 2.5.0'
pod 'SnapKit', '~> 0.30.0.beta1'    

原来新版本CocoaPods强制要求Podfile必须指明target,否则报错,Podfile内容修改为:

target '**' do
  platform :ios, '8.0'
  use_frameworks!
  pod 'RxSwift',  '~>2.5'
  pod 'RxCocoa', '~> 2.5.0'
  pod 'SnapKit', '~> 0.30.0.beta1'   
end 

即可!

注:文中如有任何错误,请各位批评指正!

相关文章

网友评论

      本文标题:【iOS】CocoaPods 升级到v1.0.0后pod ins

      本文链接:https://www.haomeiwen.com/subject/ixsxdttx.html