无法从xcode 7推送到gitlab [英] Cannot push to gitlab from xcode 7

查看:44
本文介绍了无法从xcode 7推送到gitlab的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到Xcode 7的一个不愉快的副作用是我无法再推送到我的Gitlab存储库.在过去的两年中,我一直在毫无困难地推动和退出项目,因此我怀疑Xcode 7所做的事情有所不同.我已经通过Web界面登录和注销了用于Gitlab的u/p.当我转到"Xcode">首选项">帐户"时,选择gitlab项目,我看到其中存在用户名和密码(就像已经使用两年了一样),并且验证了它们的正确性.

One unhappy side effect of upgrading to Xcode 7 is that I can no longer push to my Gitlab repo. I have been pushing and pulling from my project without problem for the last two years, so I suspect Xcode 7 is doing something different. I have verified my u/p for Gitlab by logging into and out of it via the web interface. When I go to Xcode > Preferences > Accounts, select the gitlab project, I see that the username and password are in there (just like they have been for 2 years) and I verify that they are correct.

值得注意的是,我可以从Terminal成功发布,但是,我不希望使用Terminal定期将我的代码推送到Gitlab.自升级以来,还有其他人遇到此问题吗?关于修复有什么建议吗?

It is worth noting that I can successfully post from Terminal, however, I do not wish to use Terminal to push my code to Gitlab on a regular basis. Has anyone else encountered this problem since upgrading? Any suggestions as to a fix?

我得到的特定错误是由于用户名或密码不正确,验证失败."该错误出现在帐户"对话框中,以及尝试执行到gitlab存储库的推送之后.

The specific error I am getting is "Authentication failed because the user name or password was incorrect." This error appears in the Accounts dialog, as well as after trying to perform a push to the gitlab repo.

推荐答案

因此,这真是一件让人费劲的事,老实说,我不确定这个错误的根本原因是什么,但是我解决的方式就是这样:

So this one was quite a bear to wrestle, and to be honest, I am not sure what the root cause of this error was, but the way I resolved it was this:

  1. 从GitLab删除了我的旧ssh密钥
  2. 在命令行上创建了一个新的ssh密钥,然后将其添加到GitLab
  3. 从Xcode>偏好设置">帐户"中删除了GitLab存储库
  4. 使用SSH密钥选项重新添加了GitLab帐户(以前也是如此,这不是新的东西)
  5. 关闭的Xcode
  6. 删除项目的工作目录
  7. 打开Xcode,然后选择源代码管理">签出"
  8. 提供了SSH地址(可以从项目文件夹中的GitLab获取)
  9. 对项目进行了较小的更改,以测试Push的能力
  10. 通过Xcode Source Control> Push推送到GitLab
  1. Removed my old ssh key from GitLab
  2. Created a new ssh key on the command line, then added it to GitLab
  3. Removed the GitLab repo from Xcode > Preferences > Accounts
  4. Re-added the GitLab account, using the SSH Keys Option (which it was before as well, this is not new)
  5. Closed Xcode
  6. Blew away the working directory of the project
  7. Opened Xcode, then chose Source Control > Checkout
  8. Provided the SSH address (which you can get from GitLab within your project folder)
  9. Made a minor change to the project for the purposes of testing the ability to Push
  10. Pushed to GitLab via Xcode Source Control > Push

Voila!辛苦了这绝对是核选择,但它使我再次工作.我坚信将Xcode升级到7会搞砸.如果还有其他人有这个问题,我希望能解决!

Voila! Worked. This was definitely the nuclear option but it got me working again. I firmly believe that upgrading Xcode to 7 screwed something up. If anyone else has this problem I hope this resolves it!

这篇关于无法从xcode 7推送到gitlab的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆