美文网首页
ReactiveCocoa使用CocoaPods安装失败

ReactiveCocoa使用CocoaPods安装失败

作者: 小红猪大鼻孔 | 来源:发表于2017-08-25 10:15 被阅读0次

进入podfile文件:vim podfile    进行编辑:输入 i

退出编辑:1、按Esc;  2、输入  :wq(记住先输入冒号:再输入wq) 

最后 pod install

1、[!] Invalid `Podfile` file: undefined local variable or method `use_frameworks' for #.

解决方案:在podfile文件中,加入use_frameworks!这句话。

2、[!] The dependency `ReactiveCocoa (~> 4.1.0)` is not used in any concrete target.

The dependency `SDWebImage (~> 3.7)` is not used in any concrete target.

没有添加指定的Xcode文件所在的文件夹

3、Specs satisfying the `ReactiveCocoa (~> 4.1.0)` dependency were found, but they required a higher minimum deployment target.

原因:iOS 版本要求过低

解决方法:

将后面的‘8.0’改成‘10.0’

相关文章

网友评论

      本文标题:ReactiveCocoa使用CocoaPods安装失败

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