CocoaPods安装、使用

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).
解决方法:项目所在路径中包含了中文,把中文去掉即可

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值