ios gitee新项目上传代码问题和cocopods问题
1 The requested URL returned error: 403 试了很多办法终端修改账号和邮箱 sourcetree里面的账号和密码都没用 最后看到一篇文章说钥匙串里面记录的密码删除就好 使用后果然成功 步骤 打开钥匙串 全部里面搜索git 删除全部 再次终端执行成功
2其中还出现一次问题 我的项目所有的都搭建好了 执行git commit -m "first commit命名时 告诉我很多东西没加进去 如:pod 只需要 git add pod加入就可以了
3新电脑重新安装cocopods rvm安装的那时候抱 raw.githubusercontent.com:443 解决办法 /etc/hosts 文件添加199.232.28.133 raw.githubusercontent.com
4安装最后一步 sudo gem install cocoapods时。报ruly
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 directory.
先试了修改权限 不行 后来找到一篇文章说 删除ruly。回到原点删除 删除brew里面的ruly(删除后没有测试)在升级ruly从2.6.8 升级到最新3.0.0升级了一个小时。再次回来安装cocopods 这次成功了
5 Unable to add a source with url https://github.com/CocoaPods/Specs.git named master
解决方法是:
《1》、cd ~/.cocoapods/repos
《2》、git clone https://github.com/CocoaPods/Specs.git master