Reputation: 36373
I have been connected to my remote repo for a while now through Xcode with no problems. All of a sudden today, Xcode (v6.1 which I've had since it came out) tells me to enter a password to connect to my remote repo. My repo is connected via ssh so should I even need a username and password? When I try to pull/push Xcode says "No Remotes Available", but I can successfully pull/push via command line. I have already seen
Gitlab - Xcode Can't connect with remote repository
But none of the answers there seem to help me.
Upvotes: 7
Views: 8637
Reputation: 1871
I've had a similar problem a few times, where the problem was the address of the repository wasn't right. In several cases the difference was simply a dash in the name, i.e.
https://[email protected]/teamname/reponame.git
vs
https://[email protected]/teamname/repo-name.git
I don't know how the dash went missing, or if at some point the requirement for the dash appeared, but the result was "No remotes available".
To fix the problem I just needed to remove the remote in Xcode under Source Control/Working Copies/Configure and then re-add it with the proper address, as well as remove and re-add the repository under Preferences/Accounts. Once the address was correct for both of these everything worked properly again.
Upvotes: 0
Reputation: 451
I had this same issue. It turns out that all I needed to do was go into "Configure [Project Name]", which is located here:
Once I entered the URL here, then I was good to go.
Upvotes: 7
Reputation: 36373
I have no idea what happened, but I needed to go to Xcode > Preferences > Accounts and delete the repository it had listed there.
Upvotes: 3