发现问题,分享解决方案。

Github Logo

Resolved github REMOTE HOST IDENTIFICATION HAS CHANGED issue

How to fix the following issue when run the command pod update –verbose or pod install –verbose [!] Error installing XXX [!] Failed to download ‘XXX’: [!] /usr/bin/git clone [email protected]:username/XXX.git /var/folders/z5/qp2m0vpj35zdzlk6sfhhnhwh0000gn/T/d20230401-33779-1wmy5bk –template= –single-branch –depth 1 –branch 1.4.4 Cloning into ‘/var/folders/z5/qp2m0vpj35zdzlk6sfhhnhwh0000gn/T/d20230401-33779-1wmy5bk’… @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the RSA key sent by the remote host is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. Please contact your system administrator. Add correct host key in ~/.ssh/known_hosts to get rid of this message. Offending RSA key in ~/.ssh/known_hosts:4 Host key for github.com has changed and you have requested strict checking. Host key verification failed. fatal: Could not read from remote repository.
CocoaPods

CocoaPods安装说明

1、查看gem版本号; gem --version 2、如果gem版本小于2.6.14建议升级到2.6.14或更高版本; sudo gem update --system 3、更换gem源; sudo gem --remove https://rubygems.org sudo gem --add http://gems.ruby-china.org 4、采用Sudo-less install方式安装CocoaPods; a)、在自己Home主目录新建一个目录如 Vendor/ruby b)、export GEM_HOME=$HOME/Vendor/ruby c)、export PATH=$HOME/Vendor/ruby/bin:$PATH d)、gem install cocoapods -v 1.5 5、将上面第3步的b环境变量加入 ~/.bash_profile文件(如果是苹果M1芯片则使用 ~/.zshrc 这个文件)并执行 source ~/.bash_profile 按以上方法安装的CocoaPods相关文件都会被安装到你主目录到Vendor/ruby目录下。
CocoaPods

如何解决pod update或pod install时出现Cocoapods CDN Error 错误

Cocoapods 1.8.5执行pod update或者pod install时报错如下: Update all pods Updating local specs repositories [!] CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/ Response: 400 解决办法: 按照官方文档 podfile文件中添加source源: