Gitlab - Xcode无法连接远程存储库 [英] Gitlab - Xcode Can't connect with remote repository

查看:256
本文介绍了Gitlab - Xcode无法连接远程存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在远程服务器上的TurnkeyLinux虚拟设备上安装了Gitlab版本(完全预装) 。
在Gitlab Web界面中,我创建了一个新的测试用户:testuser,其中包含密码password和一个新项目testproject。这个用户被分配到这个项目中。



git url项目包括:

  HTTP:http://example.com/testuser/testproject.git 
SSH:git@example.com:testuser / testproject.git

我可以通过SSH连接看到使用终端正确创建的repositories文件夹。



现在,我想要





  XCode>首选项>帐户

我试着添加它,同时使用网址和我的用户凭据,但总是收到以下内容消息:

 验证失败,因为名称或密码不正确。 

任何人都可以帮忙吗?

解决方案

用户/密码只需要一个http url,而不是一个ssh。



当使用http url < href =https://developer.apple.com/library/ios/recipes/xcode_help-accounts_preferences/articles/add_repository.html =nofollow noreferrer>在XCode帐户中添加一个回购库,确保没有代理可以阻止 example.com 服务器的解析。



如果它仍然不起作用,那么,正如将Xcode项目推送到GitHub时出现身份验证问题所示,请尝试使用以下URL:

  https:// testuser:password@example.com/testuser/testproject.git 


I am having troubles when I connect with my repository through Xcode.

I have a Gitlab version (full pre-)installed on TurnkeyLinux Virtual Appliance on a remote server. In the Gitlab Web interface, I've created a new test user: "testuser" with a password "password" and a new project "testproject". This user was assigned to this project.

The git url project are:

HTTP: http://example.com/testuser/testproject.git
SSH: git@example.com:testuser/testproject.git

I can see the repositories folder rightly created with a "Terminal" through SSH connection.

Now, I want add this git repository to my Xcode repositories.

So, In

XCode > Preferences > Account     

I'm trying add it, using both urls and my user credentials, but always receive the following message:

"Authentication failed because the name or password was incorrect."

Could anyone help me?

解决方案

The user/password would only be needed for an http url, not an ssh one.

When using the http url to add a repo in your XCode Accounts, make sure there is no proxy which would prevent the resolution of the example.com server.

If it is still not working, then, as in "Authentification issue when pushing Xcode project to GitHub", try to use an url like:

https://testuser:password@example.com/testuser/testproject.git

这篇关于Gitlab - Xcode无法连接远程存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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