iOS使用CocoaPods安装失败解决办法

来源:互联网 发布:win10关闭网络唤醒 编辑:程序博客网 时间:2024/05/17 22:36
[!] Unable to satisfy the following requirements:


- `AFNetworking (~> 3.1.0)` required by `Podfile`


Specs satisfying the `AFNetworking (~> 3.1.0)` dependency were found, but they required a higher minimum deployment target.



最后一步安装时,终端中出现上面的报错,是因为刚才配置的Podfile文件里面的ios版本过低导致

今天我安装AFN时写的是6.0,可是AFN支持的最低版本是7.0,所以安装失败了.

解决办法就是找到Podfile文件(和xcodeproj文件在同一目录下)右击用文本编辑打开,把里面的6改成7.

然后终端里执行pod install就行了.


具体CocoaPods怎么安装使用请看我另一篇博客

5 0
原创粉丝点击