Unable to find a specification for `xxxxx (~> x.x.x)` depended upon by Podfile. Unable to find a specification for `xxxx`

需要把当前Pod的目录清理一下就行了。在终端执行以下命令:

pod repo remove masterpod setup

setup成功后执行

pod install 或
pod update

即可。

遇到pod install或者pod update长时间卡在Updating local specs repositories

常见的解决方式是跳过更新cocoapods的spec仓库

pod install  --verbose --no-repo-updatepod update --verbose --no-repo-update

解决代理产生的Failed to connect to 127.0.0.1 port 54517: Connection refused问题

Failed to open TCP connection to 127.0.0.1:54517 (Connection refused - connect(2) for "127.0.0.1" port 54517)

查询代理

$ env|grep -I proxy$ http_proxy=127.0.0.1:54517
$ https_proxy=127.0.0.1:54517

取消代理

$ unset http_proxy
$ unset https_proxy
$ env|grep -I proxy未输出任何结果

然后再次尝试:

pod install 

成功解决问题。

pod install时出现 Unable to find a specification for `xxxx`相关推荐

  1. pod install 时遇到 Automatically assigning platform `iOS` with version `11.0` on target XXX......

    pod install的时候遇到的问题: [!] CDN: trunk Repo update failed - 2 error(s): CDN: trunk URL couldn't be down ...

  2. beego安装bee工具时出现unable to access ‘https://github.com/xxxx/xxxx‘: Failed to connect togo....解决办法

    教程主安装bee工具命令: go get github.com/beego/bee 然而却出现了错误 : fatal: unable to access 'https://github.com/shi ...

  3. github push报 Unable to access ‘https://github.com/xxxx/xxxx.git/‘: OpenSSL SSL_read: Connection was

    idea操作git时 报 Unable to access 'https://github.com/xxxx/xxxx.git/': OpenSSL SSL_read: Connection was ...

  4. RN pod install 失败(could not find compatible versions for pod “React/Core“)

    使用最新版本 React-Native(0.63) 准备嵌入原生项目时, 按照官网教程集成到现有原生项目, 一步一个脚印, 到 pod install 出现如下错误 [!] CocoaPods cou ...

  5. 在使用npm install时遇到的问题 npm ERR! code ERESOLVE

    在使用npm install时遇到的问题 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ...

  6. iOS进阶 - pod install 与 pod update 读这一篇就够了

    前言 在使用CocoaPods时,难免会混淆 pod install 和 pod update 的用法,于是在官网找到了相应的说明文章,并决定翻译过来,供大家学习. 以下内容来自:pod instal ...

  7. pod update --verbose --no-repo-update 和 pod install --verbose --no-repo-update的区别

    当需要在CocoaPods中删除一个我们不要的库时 可以在Podfile中直接删除相关库 再cd 到项目目录 执行pod update --verbose --no-repo-update 或者pod ...

  8. pod install error(NoMethodError - undefined method `size’ for nil:NilClass)

    pod install error(NoMethodError - undefined method `size' for nil:NilClass) 前言 问题截图 问题的相关连接: 解决办法 前言 ...

  9. pod install安装第三方库异常

    使用pod install安装第三方插件时,可能会出现如下异常: Installing SDWebImage (3.7.3) [!] Error installing SDWebImage [!] / ...

最新文章

  1. 一种简单的数据库性能测试方法
  2. Mac-使用技巧之快捷键
  3. Big Sur:加州一号公路和比克斯比大桥
  4. SAP GUI和Windows注册表
  5. HTML语言name,HTML a 标签的 name 属性
  6. 壊小子的学习【日常阅读篇】(三)常规学习类图书
  7. 复杂存储过程学习_AI数据存储设备选型的6个关键要素
  8. 第三方支付框架开发简要文档
  9. 使用qume启动虚拟机的时候出现:“启动域时出错: Requested operation is not valid: network ‘default‘ is not active”
  10. VUE源码相关面试题汇总
  11. 酷比魔方iplay20_799元买国产“山寨板”是否值得?酷比魔方iPlay20 Pro评测
  12. python动态爬虫_Python动态网页爬虫技术
  13. svg模糊_SVG的运动模糊效果
  14. 【密码学探秘】EVM链和并行执行交易
  15. Android微信hook
  16. AJAX的全称是什么? 介绍一下AJAX
  17. 笔记——零知识证明zkSNARK
  18. 基于Java的网络流量分析软件设计
  19. spark的几个示例
  20. 算法设计与分析实验指导(完整版)

热门文章

  1. 怎么拍照识别文字?这几个软件可以轻松实现
  2. 300集ps视频从零基础入门到精通
  3. 图片转excel表格方法介绍,办工常备工具
  4. Laravel框架与ThinkPHP框架的区别
  5. 职场遭遇不公平,到底该怎么办?只有离职吗?
  6. 终于收到OCP证书了
  7. 讲什么样的故事才好?
  8. TQ2440开发板存储器
  9. 工厂模式+策略模式组合实现电商促销活动
  10. 一天的生活不过是一生的缩影罢了