iOS - 解决Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named

简介: [!] Unable to add a source with url `https://github.com/CocoaPods/Specs.
[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master`.
You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.
  • 1
  • 2

解决方案:

pod repo add master https://github.com/CocoaPods/Specs.git
  • 1

然后提示执行’pod setup’,如果出现

[!] The `master` repo is not a git repo.
  • 1

进入/users/你的用户名/.cocoapods/repos,删除master文件夹 
然后执行

pod setup
如果pod setup 不顺利 
采用:Git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master 该过程作用与 pod setup作用相同
  • 1

如果是安装多个Xcdoe,还需要选择Xcode的路径

sudo xcode-select -switch /Applications/Xcode.app/
  • 1

在终端里输入下方命令可以知道Xcode的路径:

xcode-select -p

2: ---------------------------------------------

问题:cocoapods was not able to update the 'master' repo.if it is a unexpected issue and persists you can inspect it running 'pod repo update --verbose'



尝试解决:

尝试1、根据提示,跑一下 pod repo update --verbose

尝试2、如果还是出现原来问题,升级 gem update cocoapods(如果CocoaPods还不是最新版本)

尝试3、如果升级还是出现原来的问题,那么重装CocoaPods 。

             首先查看本地装了关于cocoapods的哪些东西,在终端输入gem list --local | grep cocoapods

             

             接着全部卸掉上面的,在终端输入gem uninstall cocoapods

再安装,在终端输入gem install cocoapods

尝试4、如果问题依旧,那么请清除缓存再pod setup
清除命令sudo rm -fr ~/.cocoapods/repos/master
再pod setup

3 安装 pod 报错--------------------------------

ERROR: While executing gem ... (OpenSSL::SSL::SSLError)

原创  2015年07月14日 23:11:37
方法一:

1) outdate open SSL

$ rvm -v
$ rvm get head

2) outdate bundle 

$ gem install bundle

方法二:
$ gem update --system

方法三:
$ apt-get install openssl

目录
相关文章
|
1月前
|
开发工具 git
如何操作github,gitee,gitcode三个git平台建立镜像仓库机制,这样便于维护项目只需要维护一个平台仓库地址的即可-优雅草央千澈
如何操作github,gitee,gitcode三个git平台建立镜像仓库机制,这样便于维护项目只需要维护一个平台仓库地址的即可-优雅草央千澈
184 69
如何操作github,gitee,gitcode三个git平台建立镜像仓库机制,这样便于维护项目只需要维护一个平台仓库地址的即可-优雅草央千澈
|
3月前
|
网络安全 开发工具 git
解决fatal:remote error:You can’t push to git://github.com/username/*.g
通过上述诊断与修复步骤,绝大多数的推送错误都能得到有效解决,确保您的Git工作流顺畅无阻。
292 1
|
5月前
|
Shell 网络安全 开发工具
fatal: unable to access 'https://github.com/wolfcw/libfaketime.git/': Encountered end of file
fatal: unable to access 'https://github.com/wolfcw/libfaketime.git/': Encountered end of file
|
7月前
|
网络安全 开发工具 git
【git】解决git报错:ssh:connect to host github.com port 22: Connection timed out 亲测有效
【git】解决git报错:ssh:connect to host github.com port 22: Connection timed out 亲测有效
2443 1
|
8月前
|
开发工具 git
出现“error: failed to push some refs to ‘https://github.com/****.git‘”,如何解决问题
出现“error: failed to push some refs to ‘https://github.com/****.git‘”,如何解决问题
925 1
|
7月前
|
网络安全 开发工具 git
使用git克隆仓库报错:Warning: Permanently added‘github.com’ to the .....(ssh )
所以,你可以安全地忽略这个警告,它不会影响到你使用git克隆仓库。如果你已经成功克隆了仓库,那么一切都在正常工作。如果你在克隆过程中遇到其他问题,那可能需要查看具体的错误信息来解决。
255 0
|
8月前
|
开发工具 git
idea中git替换,推送到新的github或者gitlab上面
idea中git替换,推送到新的github或者gitlab上面
703 2
|
9月前
|
人工智能 Linux 开发工具
[oeasy]python018_ 如何下载github仓库_git_clone_下载仓库
在这个文档中,作者讨论了如何继续进行编程学习,特别是关于GitHub的使用。首先,回顾了从编写简单代码到管理大量代码的过程。然后,提到了通过“保存运行一条龙”操作来处理代码,以及GitHub作为全球最大的开源软件平台的重要性。在GitHub上,用户可以找到各种软件项目,包括Linux、Python和Blender等。 作者解释了GitHub的基本操作,如点赞(star)、 fork(复制项目)和watch(关注项目更新)。还介绍了如何下载项目到本地,通过`git clone`命令复制仓库的URL并将其粘贴到终端进行下载。如果遇到问题,可以尝试更换HTTP链接或等待一段时间重试。
277 2
|
8月前
|
Shell 开发工具 git
如何使用git上传代码github仓库
如何使用git上传代码github仓库
|
9月前
|
Linux 开发工具 git
蓝易云 - git及GitHub的使用
以上就是Git和GitHub的基本使用方法。
33 0

热门文章

最新文章