2

This is something that's been bugging me for a while... So far I've been working around it by committing and pushing via terminal, but it would be nice to get it sorted.

In Xcode, there are two remotes listed in the source control navigator of my project.

In terminal, there aren't:

Where is Xcode storing this remote so I can remove it?

I've seen the answer here before, but it doesn't seem to be stored in the same way in Xcode 9.

Chris Byatt
  • 3,689
  • 3
  • 34
  • 61

2 Answers2

5

Solution was to manually delete derived data.

Chris Byatt
  • 3,689
  • 3
  • 34
  • 61
0

If you don't have repo on remote and only showing in XCode then you can try this so that you won't lose any data,

Where you can delete the remote it self. Not sure if it will work or not.

enter image description here

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Niki
  • 1,566
  • 1
  • 19
  • 36
  • There is a repo there but not one that I push to from this project. I deleted it anyway but there's still the repo showing in source navigator and it says "Push to remotes" from the commit screen – Chris Byatt Mar 15 '18 at 12:41
  • If you got back up of your project then you can try pushing it to the remote, cz As you know it might delete your repo from remote too. It's upto you if you want to take a chance. – Niki Mar 15 '18 at 12:47
  • https://stackoverflow.com/questions/18855849/xcode-remove-repository-from-project – Niki Mar 15 '18 at 12:49
  • I have no xccheckout files in the xcworkspace or xcodeproj packages – Chris Byatt Mar 15 '18 at 14:24
  • You can remove your repo from pointing to any of the repo from terminal, and once it will not show you anything on the list of remote repo in XCode, you can make it point it again to your origin. – Niki Mar 16 '18 at 09:17