问题1:
[!] Unable to add a source with url https://github.com/CocoaPods/Specs.git named master-1.``You can try adding it manually in ~/.cocoapods/repos or via pod repo add.
- 问题解决:您电脑上的Xcode大于一个,需自己手动选择一个使用版本,具体做法如下
- sudo xcode-select -switch /Applications/Xcode7.3.app【拖拽你要使用的xcode替换/Applications/Xcode7.3.app】
ERROR:Could not find a valid gem 'cocoapods' (>= 0), here is why:
Unable to download data from https://ruby.taobao.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://ruby.taobao.org/specs.4.8.gz)
- 问题解决:由于淘宝源已停止维护,我们需要更换新源,具体做法如下
- 查看源:
gem sources -l
- 删除源:
gem sources --remove https://ruby.taobao.org/
- 添加源:
gem sources -a https://gems.ruby-china.org/
- 查看源:
- 问题解决:由于淘宝源已停止维护,我们需要更换新源,具体做法如下
问题2
Generating Pods project Abort trap: 6
- 问题解决:安装最新发布版本,具体做法如下
sudo gem install cocoapods --pre
问题3:
- 问题解决:复制红框处的代码,运行
- 先选择一个存放位置,这里用桌面做一下:
cd destkop
- 运行红框处的代码:
git clone https://github.com/CoderMJLee/MJRefresh.git
- 先选择一个存放位置,这里用桌面做一下: