Xcode 5 - No Remotes Found

2019-06-16 06:50发布

Here are the steps:

  1. Added a repo to beanstalkapp.
  2. Added the repo from Preferences > Accounts in Xcode 5.
  3. Created a new project with local git.
  4. Selected Source Control > Push...

Xcode shows me no remotes found. What am I doing wrong?

3条回答
Melony?
2楼-- · 2019-06-16 07:21

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.

查看更多
3楼-- · 2019-06-16 07:24

maybe it's late, but might help someone else. So,

  • 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 ask.

  • Now try to push again

hope this will work.

查看更多
Ridiculous、
4楼-- · 2019-06-16 07:31

1 - go to source control tab (next to project navigator)

2 - right click on the master folder

3 - create remote on github...

查看更多
登录 后发表回答