pod 相关命令
查看所有已发布的版本
pod trunk info RxSwift
pod ipc COMMAND
+ list Lists the specifications known to CocoaPods
+ podfile Converts a Podfile to YAML
+ podfile-json Converts a Podfile to JSON
+ repl The repl listens to commands on standard input
+ spec Converts a podspec to JSON
+ update-search-index Updates the search index
本地查找spec
find ~/.cocoapods/repos/trunk/Specs -iname "PodName"
find ~/.cocoapods/repos/cocoapods -iname "PodName"
RxSwift 的 Spec 未被缓存
- 问题:如果从未安装过 RxSwift,本地可能没有缓存其 podspec。
- 解决:先尝试安装一次 RxSwift:
pod try RxSwift
查找podspec
pod spec cat IGListSwiftKit > IGListSwiftKit.podspec.json
pod spec cat RxSwift --version=6.9.0 --verbose
pod spec cat RxSwift --version=6.9.0 > RxSwift.podspec.json