marika.daboja
marika.daboja

Reputation: 991

Xcode Version 11.4.1 (11E503a) hangs upon Source Control > Create Git Repositories

My Xcode is keep hanging/freezes each time I'm trying to create repository for a new project. After clicking Source Control > Create Git Repositories > "Create", both buttons "Cancel" and "Create" become disable and I seems not be able to close the pop up window.

The only solution so far is to force close Xcode and re-open project. Note: upon doing that I can see repo being successfully created.

Wondering if anyone else is experiencing same issue?

enter image description here

Upvotes: 4

Views: 600

Answers (1)

NMaks
NMaks

Reputation: 239

I can't solve it either. But I came with semi manual solution.

So, after Xcode hanging/freezing, just force Xcode app terminating

  1. Open Terminal app, if terminal current directory is not your project directory, then navigate to project directory (command is like "cd Documents/Developer/YourProject")

  2. In your project directory there must be .git directory, by default it's hidden, from Finder you can check is it there or not by pressing 'Command' + 'shift' + '.' keys (⌘ shift .) this keys combination will unhide .git folder

  3. in the terminal use 3 git commands one by one:

    git init
      
    git add .
     
    git commit -m "first init"

And finally you can open Xcode and do other stuff related to git version control system. For example push it to GitHub.

Upvotes: 1

Related Questions