Cannot push to gitlab from xcode 7

前端 未结 5 1597
攒了一身酷
攒了一身酷 2021-01-05 02:59

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

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-05 03:10

    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. 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! 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!

提交回复
热议问题