Create a new GitHub Remote Repository - Unknown Error

When I try to create a new remote GitHub repository I get dialog saying "An unknown error occurred"

I have existing projects with a remote repository on GitHub and I can push to those ok.

Any suggestions of a workaround or how to get further diagnostics will be most welcome.

Thank you for the post. It appears that the issue is related to GitHub rather than Xcode. However, the error message could be more descriptive.

Experiencing issues when trying to create a new remote GitHub repository from Xcode can be frustrating, especially when other functionalities are working fine. Can you go to the GitHub website and create the repository manually on their website?

Ensure that your GitHub account has the appropriate permissions to create new repositories. You might want to try logging into GitHub via a web browser to verify your account status or as previously wrote, try to create the repo on their website and then just reference the link on Xcode.

  • Manually Create on GitHub Website:
    • Create the new repository directly through the GitHub website.
    • Afterward, in Xcode, add this remote repository by going to or using the Terminal commands shown in advanced diagnostics to push your existing local project to the newly created remote.

Hope this helps.

Albert Pascual
  Worldwide Developer Relations.

Albert,

You are a star, thank you.

I had created another project six years ago and happened to use the same name, doh! I renamed the old one on GitHub and now all is good.

I will amend the feedback that I had already created so as to detail the failure mode/unhandled condition.

Hope you have a good day.

Chris

Thank you for your compliment. Hope my boss is reading this :-)

I am pleased that you have identified the issue. However, you have raised an important point. It appears that the error messages displayed on the website are not rendered in Xcode. I need to verify this information and would be grateful if Xcode could provide the same error message as the website. If you are willing to assist, I may request that you file an enhancement request to address this issue.

Albert Pascual
  Worldwide Developer Relations.

Create a new GitHub Remote Repository - Unknown Error
 
 
Q