Pod私有库 SSH拉取|提示 Username for 'https://gitee.com':

最近新装的系统在Pod update提示报错

解决方法:

配置 ~/.gitconfig

[url "git@gitee.com:"]
  insteadOf = https://gitee.com/
[url "git@gitee.com:"]
  pushInsteadOf = "git://gitee.com/"
[url "git@gitee.com:"]
  pushInsteadOf = "https://gitee.com/"

之后pod update继续报错

到 ~/.cocoapods/repos/ 目录下 删除 gitee-regentsoft_epos-regent-specs 文件夹之后重新 update 即可

---方法来源

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容