cocoapods - 刚刚把新版本的pod推送到cocoapods,但是无法安装
问题描述
因此,我刚刚成功上传了我的 pod ( ) 的新版本 (1.0.1) pod trunk push MonarchRouter.podspec
,但在尝试上传时收到此消息pod install
CocoaPods could not find compatible versions for pod "MonarchRouter":
In Podfile:
MonarchRouter (~> 1.0.1)
None of your spec sources contain a spec satisfying the dependency: `MonarchRouter (~> 1.0.1)`.
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
我很确定它不是上述的。
解决方案
你应该清理 cocoapods 缓存。
rm -rf ~/Library/Caches/CocoaPods
在 github 上一个不相关的线程中的某个地方找到了答案,只是想把它留在这里。
推荐阅读
- javascript - 在 nedb 中添加的记录是单一的,但为什么 VUE 会多次存储相同的记录?
- javascript - 在字母大写算法中卡住了 - 建议?
- d3.js - D3 强制节点在左上角聚类
- html - 为什么卡片不在屏幕中央?
- javascript - 如何从一些 JSON 数据中求和一列?
- android-studio - ClasscastException 无法转换为线性布局或 Button.widget.button
- jmeter - 下面是我需要在jmeter中使用bean shell prepocessor动态传递的数据
- sql-server - 使用 BCP 实用程序将数据导入 SQL Server(导出带有错误记录的日志文件并继续插入正常记录)
- android - 更改 android studio 中的 textview 可见性
- node.js - passport-oauth2 授权 URL 和 TokenURL 实现