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

  • Thread starter CAF123
  • Start date
In summary, the conversation discusses the issue of cloning a git repository from GitHub to use in the xcode ide environment. The process is described, including selecting the correct URL and entering login details. It is mentioned that the option to open the repository directly in xcode from GitHub is no longer available. There is also a suggestion to try using Visual Studio Code instead of XCode. The conversation ends with the resolution of installing Visual Studio Code via a provided link.
  • #1
CAF123
Gold Member
2,948
88
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?
 
Computer science news on Phys.org
  • #2
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.
 
  • #3
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.
 
  • #4
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:
 

1. Why am I getting a "hung up on checking out" error when trying to clone a GitHub repo to Xcode?

This error typically occurs when there is a problem with the network connection or the GitHub repository itself. It could also be due to an issue with Xcode's settings or permissions.

2. How can I resolve the "hung up on checking out" error when cloning a GitHub repo to Xcode?

First, make sure your network connection is stable and try again. If that doesn't work, try cloning the repository using a different method, such as using the command line or a different IDE. You can also check your Xcode settings and permissions to ensure they are correct.

3. Is there a way to prevent the "hung up on checking out" error from occurring when cloning a GitHub repo to Xcode?

Unfortunately, this error is often due to external factors such as network connectivity or issues with the repository. However, you can try clearing your Xcode caches or updating to the latest version of Xcode to see if that helps prevent the error.

4. Can multiple users experience the "hung up on checking out" error when cloning a GitHub repo to Xcode?

Yes, multiple users can experience this error if they are all using the same network or if there is an issue with the repository itself. It is important to troubleshoot the issue to determine the exact cause.

5. Are there any troubleshooting steps I can take if I continue to encounter the "hung up on checking out" error when cloning a GitHub repo to Xcode?

Yes, you can try clearing your Xcode caches, updating to the latest version of Xcode, or cloning the repository using a different method. You can also check for any reported issues with the repository or reach out to the repository owner for assistance.

Similar threads

Replies
16
Views
2K
  • Computing and Technology
Replies
3
Views
1K
  • STEM Academic Advising
Replies
4
Views
1K
Replies
1
Views
815
Replies
21
Views
5K
Replies
4
Views
3K
Replies
6
Views
1K
  • Electrical Engineering
2
Replies
35
Views
4K
  • Quantum Physics
2
Replies
69
Views
4K
Back
Top