Xcode 5 - No Remotes Found

微笑、不失礼 提交于 2020-01-03 07:30:15

问题


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?


回答1:


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.




回答2:


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.




回答3:


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

2 - right click on the master folder

3 - create remote on github...



来源:https://stackoverflow.com/questions/19791230/xcode-5-no-remotes-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!