1 pod search 无效解决方式
(尝试删除~/Library/Caches/CocoaPods/search_index.json重新pod search无效)
https://www.jianshu.com/p/bdf29542c565
2 CDN: trunk Repo update failed
第一步:移除trunk
进入~/.cocoapods/repos目录,然后删除trunk
第二步:打开终端,进入~/.cocoapods/repos
先执行:cd ~/.cocoapods/repos
然后执行: git clone --depth 1 https://github.com/CocoaPods/Specs.git master
等待完毕,即可
3 各种命令
更新指定的第三方库: pod update 库名
只安装新添加的库,已更新的库忽略: pod install --verbose --no-repo-update
只更新指定的库,其他库忽略: pod update 库名–verbose --no-repo-update
4、报错
The Podfile contains framework or static library targets (NHTPushAPI), for which the Podfile does not contain host targets (targets which embed the framework).
If this project is for doing framework development, you can ignore this message. Otherwise, add a target to the Podfile that embeds these frameworks to make this message go away (e.g. a test target).
解决方法:项目所在路径中包含了中文,把中文去掉即可