XCode - GitHub ´SecureTransport error: I/O error. (-1)´

XCode - GitHub ´SecureTransport error: I/O error. (-1)´

我在 pushing 到我的 GitHub 存储库时遇到问题(它是 iPhone 的 iOS 应用程序)。在过去的几年里,我这样做没有任何问题。但是,在不更改与 XCode 和 GitHub 之间的连接相关的任何内容的情况下,现在我收到此错误消息:

我已经检查过,我的所有凭据都是最新的,项目工作正常,我可以做到 commits,但是当我做到 push 时。出现错误,没有推送完成。

另外,我试过推其他项目,没有问题。另外,推送的大小也没有那么大。

我应该怎么做才能解决这个错误?我正在使用 XCode 的 Source Control 功能。

当通过命令行(终端)执行 push 时,我发现错误是由于文件大小为 +100MB 而产生的。我不得不将其删除,一切正常。

备注:该文件是一个 pod 库。因此,在推送所有项目时要小心。最后,要备份整个项目,您只需要 podfile,因为它是您用来安装 pod 库的那个。

我有同样的问题原因 selecting 不同的来源,select 默认来源和源代码控制 > 推送和 select 下拉列表中的来源然后推送

我遇到了这个问题,然后我使用了终端,我意识到我需要将我的个人访问令牌添加到我的推送请求中。

要获取您的个人访问令牌,请转到您的 github.com 帐户->个人资料->设置->开发人员设置->个人访问令牌并生成一个新令牌。保存在安全的地方,因为你只能复制一次,否则你必须重新生成

Initialising and committing your project locally. Skip if you've already committed

cd <directory of your project>
git init
git add .
git commit -m "type in a commit message here"

Pushing to your remote project on github.com

git remote add origin https://github.com/AccountName/testProject.git
git push -u origin master

It'll prompt you to enter Username & Password but password should be your token already created on github prior and NOT your account password

Username for 'https://github.com': <your username here>
Password for '<your username is shown here>': <access token here>