Unable to satisfy the following requirements解决方案
来源:互联网 发布:日韩男士帽子 知乎 编辑:程序博客网 时间:2024/05/20 19:19
Unable to satisfy the following requirements解决方案
今天从git上面download我们项目,然后向往常一样安装Cocoapods,但是却突然发现报错了,尝试了几遍,发现一直报错。然后我这才看了一下,安装Cocoapods的日志,发现抛出了一个报错。
[!] Unable to satisfy the following requirements:
- `MJExtension` required by `Podfile`
- `MJExtension (= 2.4.4)` required by `Podfile.lock`
哎,之前没有见过这个错误,我不知道从何着手解决这个问题。然后,开始使用我们程序员的神器,就是Google啦。很难想象如果没有Google,多少程序员要丢饭碗。看到了一个博客分享了自己的解决方案,如下:
因此我们要用pod命令进行安装。cd到Example目录下执行pod install命令,将会报错:
- $ pod install
- Analyzing dependencies
- Fetching podspec for `UAAppReviewManager` from `..`
- [!] Unable to satisfy the following requirements:
- - `UAAppReviewManager (from `..`)` required by `Podfile`
因此我们要用update命令获取最新版本的类库:
- $ pod update
- Analyzing dependencies
- Fetching podspec for `UAAppReviewManager` from `..`
- Downloading dependencies
- Installing UAAppReviewManager (0.2.1)
由此可知,出现这个错误的原因是,我本地Podfile文件上的MJExtension第三方版本太低。解决方案就是,更新一下本地Podfile文件上的MJExtension第三方版本,也就是pod update --verbose一下。注意一下,这个命令需要很长时间。一直停在这个页面。。。。
zuodeMacBook-Air:mokodreamwork_ios2 zuo$ pod update --verbose Update all pods
Preparing
Updating local specs repositories
Updating spec repo `master`
Preparing
Updating local specs repositories
Updating spec repo `master`
大家千万不要关掉页面,等半个小时吧,就会更新好。如下界面:
表示更新成功,问题也解决了,然后就可以打开我们从git上面download的工程了。
本文参考资料
0 0
- Unable to satisfy the following requirements解决方案
- Unable to satisfy the following requirements解决方案
- Unable to satisfy the following requirements解决方案
- Unable to satisfy the following requirements解决方案
- CocoaPods Unable to satisfy the following requirements解决方案
- Cocoapods-Unable to satisfy the following requirements
- [!] Unable to satisfy the following requirements:
- 使用cocospod报错Unable to satisfy the following requirements解决方案
- 修复cocoapods - Unable to satisfy the following requirements:
- [!] Unable to satisfy the following requirements:众里寻他千百度。
- 修复cocoapods - Unable to satisfy the following requirements
- [!] Unable to satisfy the following requirements: - `AFNetworking (~> 2.6.1)` required by `Podfile`
- CocoaPod: 出现 Unable to satisfy the following requirements:required by 'Podfile'
- CocoaPods使用问题 gem sources 查看ruby源unable to satisfy the following requirements:
- Unable to simultaneously satisfy constraints
- Unable to simultaneously satisfy constraints.
- Unable to simultaneously satisfy constraints
- Your password does not satisfy the current policy requirements
- select2 默认选中
- L3-003. 社交集群
- JNI官方规范中文版——如何把一个JVM嵌入到本地程序中
- sr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crt1.o: In function `_start'问题解决
- SQLite基础
- Unable to satisfy the following requirements解决方案
- 抽空写的网站抓图片c++,增加了简单的多线程和互斥
- JNI官方规范中文版——在程序中集成JVM需要注意的JNI特征
- hud 1548 A strange lift
- Android属性动画——实现布局的下拉展开
- 支持向量机 SVM 讲义(五)
- 介绍Json
- oracle笔记
- java多线程基础(6)-调度方式之暂停当前线程方式5-等待(wait)