pod install后警告
WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8
这个waring的解决方法是,我在根目录下创建了一个.bash_profile里面写export LANG=en_US.UTF-8,然后输入
source ~/.bash_profile
就可以正常使用pod install了,但是新问题是每次都要source一下
pod install 443
stackoverflow上有很多解决方案,有一个方法是不能开代理(微劈恩要关掉),并且输入
git config --global --unset http.proxy
git config --global --unset https.proxy
还有一个方法是关闭wifi ipv6的something,输入
networksetup -setv6off Wi-Fi
如果这两个方法都无法解决你的问题,可以检查一下自己是否在hosts文件中加上了github的网址,这样也会出问题(我当初找这个错找了好久😭)把github相关信息删掉
再失败的话就多换几个网络试试