Cocoa Pods 常见问题

pod常见问题解决:

1.Installing openssl-ios-bitcode pod失败

情况1:"cp: file.tgz: No such file or directory"
https://github.com/FredericJacobs/OpenSSL-Pod/issues/49

image.png

情况2:compile失败


1.png

2.png

3.png

参考下面第4条

2.安装cocoapods遇到error: RPC failed; curl 56 SSLRead() return error -36问题

https://blog.csdn.net/wm9028/article/details/51840759

3.修改git clone超时时间 /home/git/gitlab/config/unicorn.rb**

https://blog.csdn.net/github_33644920/article/details/50559010

4.git clone 太慢的解决方式

/etc/hosts文件中添加
151.101.76.249 github.global.ssl.fastly.net
192.30.253.112 github.com

https://blog.csdn.net/github_34965845/article/details/80610060
https://blog.csdn.net/twang0x80/article/details/79777135

5.git设置代理服务器

https://blog.csdn.net/donghaiming111/article/details/80828458

brew install proxychains-ng

编辑配置文件 vim /usr/local/etc/proxychains.conf

在末尾的 [ProxyList] 下加入代理类型

socks5 127.0.0.1 1080

git config --global http.https://github.com.proxy socks5://127.0.0.1:1080

取消代理
git config --global --unset http.https://github.com.proxy

6.pod安装不成功

sudo gem install cocoapods 改为 sudo gem install -n /usr/local/bin cocoapod

7.Unable to find a pod with name, author, summary, or description matching

终端输入rm ~/Library/Caches/CocoaPods/search_index.json
pod repo update --verbose

你可能感兴趣的:(Cocoa Pods 常见问题)