Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hung on Checking out when trying to clone git repository to xcode

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?

like image 546
CAF Avatar asked Oct 14 '22 22:10

CAF


1 Answers

I've had a similar issue with a particular project when using Xcode 12.4 on OS X 11.0.1 (Big Sur). To get around it I just checked out the code on the command line via git then opened it up in Xcode.

git clone https://github.com/<user>/<project>.git

Just use the "Open a project or file" option in Xcode and point it at the checked out code.

like image 122
Robert Hunt Avatar answered Oct 17 '22 13:10

Robert Hunt