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

Discussion Overview

The discussion revolves around issues encountered when attempting to clone a GitHub repository into the Xcode IDE. Participants explore potential causes for the process getting stuck on the 'Checking out' phase, including URL types and compatibility with Xcode.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Exploratory

Main Points Raised

  • One participant describes their experience of being stuck on the 'Checking out' phase when cloning a repository from GitHub to Xcode.
  • Another participant notes the difference between SSH and HTTPS URLs provided by GitHub, suggesting that the HTTPS URL is necessary for Xcode.
  • Concerns are raised about the compatibility of the repository with Xcode, with one participant mentioning successful cloning of another repository.
  • There is a suggestion that the issue may be related to permissions, such as being logged into GitHub with a different user than the one set up in Xcode.
  • Participants discuss the potential of using Visual Studio Code as an alternative IDE, highlighting its cross-platform capabilities and support for C/C++ building.

Areas of Agreement / Disagreement

Participants express differing views on the cause of the issue, with some suggesting it may be a compatibility problem while others propose it could be a permissions issue. No consensus is reached on the root cause of the problem.

Contextual Notes

There is uncertainty regarding the specific requirements for cloning repositories into Xcode and the implications of using different URL types from GitHub.

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:
 

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
5K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 69 ·
3
Replies
69
Views
8K