Hung up on Checking out when trying to clone GitHub repo to xcode

  • Thread starter Thread starter CAF123
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
CAF123
Gold Member
Messages
2,918
Reaction score
87
I am trying to clone a git repository from GitHub to use in the xcode ide environment, however it seems to be stuck on the 'Checking out' phase. I've left it for an hour but it seems to be hung on this stage.

I go to the Github repository, then copy the URL that is under the tab 'Code'. In xcode, I select 'Clone an existing project', enter the URL, put in my Github account details and password etc and then save to my computer in Documents. Then I click 'Clone' and it proceeds but gets hung on the Checking Out screen.

I've watched a few online videos and there was the option to open in xcode directly from GitHub itself. But, despite the video only being a year old, this option now seems obsolete and is no longer available, at least in what I can see.

Anyone know how to resolve?
 
on Phys.org
CAF123 said:
I am trying to clone a git repository from GitHub to use in the xcode ide environment, however it seems to be stuck on the 'Checking out' phase. I've left it for an hour but it seems to be hung on this stage.

I go to the Github repository, then copy the URL that is under the tab 'Code'. In xcode, I select 'Clone an existing project', enter the URL, put in my Github account details and password etc and then save to my computer in Documents. Then I click 'Clone' and it proceeds but gets hung on the Checking Out screen.
GitHub provides two different URLs to code repos, by default it shows a URL for downloading via SSH which starts git@github.com:. I don't know XCode (and I haven't used a Mac for about 30 years) but if it is asking you to login to GitHub it is the HTTPS URL that it needs which starts https://github.com/.

CAF123 said:
Anyone know how to resolve?
I don't think there are many people around here familiar with XCode. I'm a fan of Visual Studio Code which has the big advantage of being cross-platform so you have a wider pool of knowledge to tap.
 
pbuk said:
GitHub provides two different URLs to code repos, by default it shows a URL for downloading via SSH which starts git@github.com:. I don't know XCode (and I haven't used a Mac for about 30 years) but if it is asking you to login to GitHub it is the HTTPS URL that it needs which starts https://github.com/.
Thanks. Is it possible that the repo I wish to clone into XCode from GitHub is simply not compatible with XCode? I had tried with another repo from GitHub and I was able to easily clone it into XCode. In fact, in the 'Code' tab in GitHub, there was an option for 'Open in XCode' directly with this repo.

I don't think there are many people around here familiar with XCode. I'm a fan of Visual Studio Code which has the big advantage of being cross-platform so you have a wider pool of knowledge to tap.
I see. Ok, I will maybe explore some other IDEs as well. I checked online and I understand that the Visual Studio does not support C++ building while Visual Studio Code does. As I am working on the Mac Os, I have the C/C++ build tools already installed via XCode tools Apple app so I think I can proceed with just installing Visual Studio Code via this link https://code.visualstudio.com/download.
 
CAF123 said:
Thanks. Is it possible that the repo I wish to clone into XCode from GitHub is simply not compatible with XCode?
Unlikely, I think it's more likely that there is some permissions issue e.g. being logged into GitHub as a different user to the one set up in XCode. I think you need someone with a similar environment to help with this.

CAF123 said:
I see. Ok, I will maybe explore some other IDEs as well. I checked online and I understand that the Visual Studio does not support C++ building while Visual Studio Code does.
Yes the naming is unfortunate - Visual Studio Code is a completely different product from Visual Studio.

CAF123 said:
As I am working on the Mac Os, I have the C/C++ build tools already installed via XCode tools Apple app so I think I can proceed with just installing Visual Studio Code via this link https://code.visualstudio.com/download.
Yes that should get you started :smile: