Cocoapods-Unable to satisfy the following requirements
来源:互联网 发布:9本java程序员必读的书 编辑:程序博客网 时间:2024/06/10 02:15
记录一个问题,之前遇到过,又忘了:
Cocoapods 更新出现如下错误
Resolving dependencies of `Podfile`[!] Unable to satisfy the following requirements:- `OCMock (= 3.2.1)` required by `Podfile`
提示:不能满足以下要求,并且指出了哪一行出了问题
这种情况一般是 OCMock (= 3.2.1) 中的版本号不符合要求了。
打开终端,使用命令
pod search OCMock
显示如下:
bruce-2:Example bruce$ pod search OCMock-> Expecta+OCMock (2.1.0) Expecta matchers for OCMock 3.0. pod 'Expecta+OCMock', '~> 2.1.0' - Homepage: https://github.com/dblock/ocmock-expecta - Source: https://github.com/dblock/ocmock-expecta.git - Versions: 2.1.0, 2.0.0, 1.1.0, 1.0.0 [master repo]-> OCMock (3.1.5) Mock objects for Objective-C pod 'OCMock', '~> 3.1.5' - Homepage: http://ocmock.org - Source: https://github.com/erikdoe/ocmock.git - Versions: 3.1.5, 3.1.4, 3.1.3, 3.1.2, 3.1.1, 3.1, 3.0.2, 3.0.1, 3.0, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2, 2.1.1, 2.0.1, 1.77.1 [master repo]-> OCMockito (1.4.0) OCMockito is an Objective-C implementation of Mockito, supporting creation, verification and stubbing of mock objects. pod 'OCMockito', '~> 1.4.0' - Homepage: https://github.com/jonreid/OCMockito - Source: https://github.com/jonreid/OCMockito.git - Versions: 1.4.0, 1.3.1, 1.3.0, 1.2.0, 1.1.0, 1.0.0, 0.23, 0.22 [master repo]
这时候发现已经没有3.2.1了,而是3.1.5了,替换之后就可以了。
然后在使用命令pod update,如果卡住了
//如果卡在Analyzing dependencies可以尝试下面的命令//或者pod install --verbose --no-repo-update //或者pod update --verbose --no-repo-update Options: --verbose Show more debugging information --no-repo-update 不要去处理cocoapods的升级,
0 0
- Cocoapods-Unable to satisfy the following requirements
- 修复cocoapods - 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解决方案
- 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使用问题 gem sources 查看ruby源unable to satisfy the following requirements:
- [!] 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'
- 使用cocospod报错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
- c语言之打印输出图形
- 大数据Spark“蘑菇云”行动-第13课Scala模式匹配实战和Spark源码鉴赏
- 使用flask-avatar生成博客头像
- java自带线程池和队列相关
- FPS (每秒传输帧数(Frames Per Second))
- Cocoapods-Unable to satisfy the following requirements
- 什么是session
- java讲义(七)final修饰符
- 下一幕——人工智能
- URL分享
- amf数据格式
- 汇编语言-条件跳转指令
- Opera浏览器同步服务被黑,百万用户密码遭泄露
- C# 并发集合