Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将Xcode项目推送到GitHub时出现身份验证问题_Xcode_Github - Fatal编程技术网

将Xcode项目推送到GitHub时出现身份验证问题

将Xcode项目推送到GitHub时出现身份验证问题,xcode,github,Xcode,Github,当我想通过Xcode将我的项目推送到GitHub时遇到了一个问题 注意,我不是在说终点站。我必须为我的团队中的艺术家设置Xcode环境。终端不为他工作 我试图使用HTTPS地址(https://github.com/zeroliu/DumplingJump.git)开始时,但始终收到403身份验证错误 错误:访问时请求的URL返回错误:403 致命:HTTP 请求失败 通过到处搜索,我发现GitHub实际上只接受SSH方式。 但奇怪的是,我可以使用HTTPS方式通过终端推动我的项目……我认为这种

当我想通过Xcode将我的项目推送到GitHub时遇到了一个问题

注意,我不是在说终点站。我必须为我的团队中的艺术家设置Xcode环境。终端不为他工作

我试图使用HTTPS地址(https://github.com/zeroliu/DumplingJump.git)开始时,但始终收到403身份验证错误

错误:访问时请求的URL返回错误:403 致命:HTTP 请求失败

通过到处搜索,我发现GitHub实际上只接受SSH方式。 但奇怪的是,我可以使用HTTPS方式通过终端推动我的项目……我认为这种说法不对。

无论如何,然后我尝试了SSH方式,但它也不起作用。Xcode要求我输入用户名和密码,但无论我尝试了多少次,它都不起作用。我认为问题来自Xcode本身,因为SSH地址是git@github.com:Organization/Repository.git,Xcode愚蠢地认为用户名是git,而不是Organization…当我在推送项目时更改用户名时,Xcode将自动用我的用户名替换“git”,这会将地址更改为Organization@github.com:Organization/Repository.git。这应该是我无法通过SSH获得访问权限的原因

你们中有人通过Xcode成功地将项目推送到GitHub吗?
真的需要你的帮助!!非常感谢

我总是将github URL设置为:

https://username:password@github.com/username/Whatever.git

这对安全性是有害的,但我已经浪费了足够多的时间试图让SSH使用多个密钥对,而且我不能麻烦每次都键入我的用户名/密码。

哦,它可以工作!!你是对的,这不是一个安全的方法。但这是非常实际的。谢谢!我发现这是在Xcode 10上使用Git的唯一方法,而且我还没有尝试任何东西,我仍然在Xcode中得到一个错误:意外的HTTP状态代码:403(-1)