Reputation: 4758
Here are the steps:
Xcode shows me "no remotes found".
What am I doing wrong?
Upvotes: 11
Views: 8924
Reputation: 6092
Goto Xcode -> Preferences under Xcode menu
Select Accounts
Press "+" icon on the left-bottom corner, then press "Add Repository..."
Add repository location in the text box, Click Next.
Give password if it asks.
Now try to push again
Upvotes: 0
Reputation: 41
Make sure to publish your repository first. You cannot push to a local repository.
I also had this problem but I realized I haven't published the current repository yet. This was the reason why there is no remote to be found.
Upvotes: 0
Reputation: 783
1 - go to source control tab (next to project navigator)
2 - right click on the master folder
3 - create remote on github...
Upvotes: 1
Reputation: 2072
Xcode probably doesn't know that the remote belongs to your project. See if this works:
Open your project in Xcode
Head over to Source Control - Working Copies (your project) - Configure - Remotes. Can you see your remote there? If not, hit the plus sign at the bottom left and add your remote.
If your project is showing, and you've verified the path, try Source Control - Push. You should see your remote(s) and a drop-down of branches.
If instead you see "No Remotes", try rebooting Xcode.
Upvotes: 2