CocoaPods 的又一个小坑 required by `Podfile`
2015-09-29 14:24
537 查看
可以参考这篇文章:http://blog.csdn.net/pinxue/article/details/47162725
在私有仓库上做一个 pod 模块,一直好好的,一通折腾之后突然不对了,在 Example 里运行 pod install,居然报:
Resolving dependencies of `Podfile`
[!] Unable to satisfy the following requirements:
- `DataModel (from `../`)` required by `Podfile`
- `DataModel (from `../`)` required by `Podfile`
- `DataModel (= 0.1.0)` required by `Podfile.lock`
折腾了很久,终于发现是手贱在 .podspec 里改了依赖的 iOS 版本号:
s.platform = :ios, '8.0'
改回 7.0 或 7.1 就没问题了。不过这也太妖了吧,唔,其实不妖,在 Example/Podfile 里指定一下 iOS 版本号就对上了:
platform :ios, '8.0'
错误信息不说是因为平台版本号的问题,浪费多少时间呀!
再说说我碰到的问题,今天尝试手写podfile,
platform :ios'
pod 'JSONKit', '~>1.4'
pod 'SDWebImage', '~> 3.7.3'
pod 'AFNetworking', '~>2.0.1'
jsonkit没问题,可以安装成功,后边的就出问题,报错如下形式
[!] Unable to satisfy the following requirements:
- `DataModel (from `../`)` required by `Podfile`
查了半天都说是 pod setup 没完成,确实看来下.cocoapods目录下的文件才7M,想着也是这个问题,所以就折腾这个,删了又下,结果还是不成功,尝试各种方法也没成功。一直也没往平台版本方面想,知道看到这篇才恍然大悟。
platform :ios,‘6.0’
pod 'JSONKit', '~>1.4'
pod 'SDWebImage', '~> 3.7.3'
pod 'AFNetworking', '~>2.0.1'
加上6.0后就没问题了。
在私有仓库上做一个 pod 模块,一直好好的,一通折腾之后突然不对了,在 Example 里运行 pod install,居然报:
Resolving dependencies of `Podfile`
[!] Unable to satisfy the following requirements:
- `DataModel (from `../`)` required by `Podfile`
- `DataModel (from `../`)` required by `Podfile`
- `DataModel (= 0.1.0)` required by `Podfile.lock`
折腾了很久,终于发现是手贱在 .podspec 里改了依赖的 iOS 版本号:
s.platform = :ios, '8.0'
改回 7.0 或 7.1 就没问题了。不过这也太妖了吧,唔,其实不妖,在 Example/Podfile 里指定一下 iOS 版本号就对上了:
platform :ios, '8.0'
错误信息不说是因为平台版本号的问题,浪费多少时间呀!
再说说我碰到的问题,今天尝试手写podfile,
platform :ios'
pod 'JSONKit', '~>1.4'
pod 'SDWebImage', '~> 3.7.3'
pod 'AFNetworking', '~>2.0.1'
jsonkit没问题,可以安装成功,后边的就出问题,报错如下形式
[!] Unable to satisfy the following requirements:
- `DataModel (from `../`)` required by `Podfile`
查了半天都说是 pod setup 没完成,确实看来下.cocoapods目录下的文件才7M,想着也是这个问题,所以就折腾这个,删了又下,结果还是不成功,尝试各种方法也没成功。一直也没往平台版本方面想,知道看到这篇才恍然大悟。
platform :ios,‘6.0’
pod 'JSONKit', '~>1.4'
pod 'SDWebImage', '~> 3.7.3'
pod 'AFNetworking', '~>2.0.1'
加上6.0后就没问题了。
相关文章推荐
- UIViewController的基本概念与生命周期
- iOS开发UI篇—控制器的创建
- ARM平台上蓝牙协议栈Bluez的移植使用和配置
- EasyUI - 操作 Tree 控件
- iOS开发UI篇—UIWindow简单介绍
- iOS开发UI篇—使用storyboard创建导航控制器以及控制器的生命周期
- 关于UITableView的简单使用
- IOS开发UI篇—导航控制器属性和基本使用
- 02UiAutomator学习新建测试工程
- iOS开发UI篇—多控制器和导航控制器简单介绍
- iOS开发UI篇—Date Picker和UITool Bar控件简单介绍
- iOS开发UI篇—常见的项目文件介绍
- iOS开发UI篇—直接使用UITableView Controller
- UICollectionView用法
- mysql 连接url中useUnicode=true&characterEncoding=UTF-8 的作用
- EasyUI Combobox 默认设置
- 01Android UiAutomator环境配置与编译运行
- 四种更新UI的方法
- easyui datagrid json出现 $.rows[0].account 原因分析
- SpriteBuilder中频繁的切换场景层的解决办法