2

I have created a git repository but have deleted the repository, so there is nothing to clone from that repository, which means I want to remove these URLs.

How do I remove git remote URLs from XCode > SourceControl > Checkout?

https://i.stack.imgur.com/HXK6W.png

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Hardroid
  • 51
  • 6

4 Answers4

1

Check if you can find a .xcheckouts file which would include those urls for you to remove.
See "xcode remove repository from project".
As mentioned here, an .xccheckout file contains metadata about what repositories are used in a workspace.

In latest versions of XCode (7), check for a xcode preference file in /Library/Preferences (as in this thread)

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • i cant find .xcheckouts file in the repo.also the urls of other repo are also visible which has no link with current repo.it seems the urls are stored somewhere globally. – Hardroid Mar 19 '16 at 08:13
  • @Hardyyy I agree. Did you follow http://stackoverflow.com/a/21608689/6309 and right-click on the `project.xcworkspace` file, and select "Show Package Contents" to seek `xcshareddata`? – VonC Mar 19 '16 at 08:14
  • yeah found xcshareddata but no .xcheckouts – Hardroid Mar 19 '16 at 08:18
  • @Hardyyy I have edited the answer: do you have XCode 7? – VonC Mar 19 '16 at 08:42
  • @Hardyyy Then close XCode, try and remove an xcode preference file in /Library/Preferences and restart XCode, to see if that makes any difference. – VonC Mar 19 '16 at 08:45
  • its seems to be bug.no solution :( – Hardroid Mar 19 '16 at 08:52
  • @Hardyyy I agree, any thread I have seen involving XCode 7 all mention that issue as a bug. – VonC Mar 19 '16 at 09:09
1

In your terminal hit below command to clear the xcode preferences

defaults delete com.apple.dt.Xcode

Haven't tested, may be this may help you.

Hardik Amal
  • 1,283
  • 1
  • 16
  • 23
  • Not working: Domain (com.apple.dt.Xcode) not found. Defaults have not been changed. – KML Dec 16 '16 at 10:00
1

In xCode 11.6 you can open your project, locate the repository tab on the left margin. Identify the remote connection that you want to delete. Look at the description in the right tab under it's repository tab and verify that it is the correct remote URL for deletion. Right click on the repository and delete the repository.enter image description here

enter image description here

enter image description here

Larry Ricker
  • 199
  • 1
  • 7
0
  1. Xcode -> File -> Add Packages

enter image description here

  1. Recently Used -> Right Click -> Remove.

enter image description here

Ofir Malachi
  • 1,145
  • 14
  • 20