Unable to satisfy the following requirements解决方式
2017-07-21 08:36
1006 查看
今天从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命令,将会报错:
[plain] view
plaincopy
$ pod install
Analyzing dependencies
Fetching podspec for `UAAppReviewManager` from `..`
[!] Unable to satisfy the following requirements:
- `UAAppReviewManager (from `..`)` required by `Podfile`
原因是要加入的类库已经有最新版本号推出。而Podfile文件并没有更改其下载版本号(Podfile文件过期),于是获取安装数据失败。
因此我们要用update命令获取最新版本号的类库:
[plain] view
plaincopy
$ 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`
大家千万不要关掉页面,等半个小时吧,就会更新好。
例如以下界面:
表示更新成功,问题也攻克了,然后就能够打开我们从git上面download的project了。
本文參考资料
使用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命令,将会报错:
[plain] view
plaincopy
$ pod install
Analyzing dependencies
Fetching podspec for `UAAppReviewManager` from `..`
[!] Unable to satisfy the following requirements:
- `UAAppReviewManager (from `..`)` required by `Podfile`
原因是要加入的类库已经有最新版本号推出。而Podfile文件并没有更改其下载版本号(Podfile文件过期),于是获取安装数据失败。
因此我们要用update命令获取最新版本号的类库:
[plain] view
plaincopy
$ 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`
大家千万不要关掉页面,等半个小时吧,就会更新好。
例如以下界面:
表示更新成功,问题也攻克了,然后就能够打开我们从git上面download的project了。
本文參考资料
使用CocoaPods(一)为项目配置第三方类库
相关文章推荐
- CocoaPods Unable to satisfy the following requirements解决方案
- 修复cocoapods - 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:
- 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`
- [!] Unable to satisfy the following requirements:众里寻他千百度。
- CocoaPod: 出现 Unable to satisfy the following requirements:required by 'Podfile'
- Unable to satisfy the following requirements
- 解决VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot
- Maven使用package打包Spring Boot时出现:Unable to find a single main class from the following candidates的问题解决
- iOS ERROR: unable to get the receiver data from the DB 解决方式
- XCode项目下执行POD更新命令提示Unable to satisfy the following
- Minecraft Windows版出现Unable to start the Minecraft Runtime Environment错误的解决方式
- Unable to locate any of the following operational binaries 解决方法
- rpmdb: unable to join the environment的解决办法