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

  • Thread starter Thread starter CAF123
  • Start date Start date
Click For Summary
Cloning a GitHub repository into Xcode is encountering issues, specifically getting stuck on the 'Checking out' phase. The process involves copying the repository URL from GitHub and entering it into Xcode, but it appears to hang after clicking 'Clone.' Users suggest ensuring the correct URL format is used, as GitHub provides both SSH and HTTPS URLs, with the latter required for Xcode login. There are concerns about compatibility with certain repositories, as one user successfully cloned a different repo without issues. Suggestions include checking for permissions problems or considering alternative IDEs like Visual Studio Code, which is cross-platform and supports C++ building. The discussion highlights the importance of using the correct URL and the potential need for a different development environment if issues persist.
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?
 
Computer science news 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:
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...

Similar threads

Replies
16
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 21 ·
Replies
21
Views
5K
Replies
1
Views
3K
  • · Replies 35 ·
2
Replies
35
Views
5K
Replies
3
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 69 ·
3
Replies
69
Views
7K