在私有仓库上做一个 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'
错误信息不说是因为平台版本号的问题,浪费多少时间呀!