41

I use Cornerstone for managing my Subversion repositories, so I don't need Xcode's integration, and I'm noticing Xcode is dumping loads of SVN-related output into my console (it recognises that my project is a local SVN copy)...

In particular, there are loads of ERROR: Your working copy returned an SVN status of "external" that we don't handle (yet) messages due to my svn:externals.

This has to be slowing the IDE down - does anyone know of any way to disable the SVN integration in Xcode 4?

Mark Beaton
  • 2,657
  • 3
  • 23
  • 33

6 Answers6

59

Right! This seems to stop it for good - simply rename the following package to something other than IDESubversion.ideplugin (I've renamed mine IDESubversion-DISABLED.ideplugin)...

Xcode 5.1+
This is finally a built-in Xcode preference - see @MANIAK_dobrii's answer for details.

Xcode 5/Xcode 4.3+:
/Applications/Xcode.app/Contents/PlugIns/IDESubversion.ideplugin

Xcode 4.0 - 4.2:
/Developer/Library/Xcode/PrivatePlugIns/IDESubversion.ideplugin

Note that in Xcode 4.0 & 4.1 (and possibly 4.2) renaming the extension seemed to work fine. From Xcode 4.3 however, you might need to leave the extension intact, and rename the name portion of the bundle instead (to avoid the error on launch that people have described in the comments below).

Tip o' the hat to: Remove git from project in Xcode 4

Community
  • 1
  • 1
Mark Beaton
  • 2,657
  • 3
  • 23
  • 33
  • I just spent a day trying to stop the damn plugin from ruining my SVN repo. Big thanks for this solution! – Ovidiu Bute Sep 25 '11 at 11:31
  • Yep, finally a solution for permanently disabling version control on xcode 4. Thanks! – leolobato Oct 01 '11 at 18:13
  • This worked fine since now. Yesterday I updated to the new 4.2 version and the plugin appeared again. If I remove it Xcode fails stating because of a missing component. – llullulluis Oct 13 '11 at 09:40
  • Renaming the plugin still works for me with the 4D199 GM build of Xcode 4.2 that was release to the dev portal last week... – Mark Beaton Oct 13 '11 at 23:10
  • Update for Xcode 4.3: this still works, plugins are now located at /Applications/Xcode.app/Contents/PlugIns – Mark Beaton Feb 16 '12 at 23:31
  • This does not still work for XCode 4.3 or 4.2. You get a missing components dialog, and XCode refuses to run. – Chris Hill Mar 07 '12 at 03:30
  • Pretty strange - works on all my Xcode installations, on multiple machines. What are you renaming the file to? – Mark Beaton Mar 07 '12 at 04:26
  • Worked for me on Lion with Xcode 4.3.2. I renamed the git subdirectory to IDEGit-DISABLED.ideplugin. No missing component error messages yet. Thanks! – jpm Apr 05 '12 at 14:08
  • Xcode SVN was like a terminator that never die! And finally you succeeded! Tanks!!! – Martin Jun 27 '12 at 15:26
  • +1 Confirmed: in XCode 4.3.3 I had to rename the IDESubversion part of the file, leaving the extension instact, and XCode would then launch. Thanks, great answer! – occulus Jun 28 '12 at 15:29
  • I applied this solution to Xcode 4.5 It does disable Subversion plugin. Thanks! – petershine Sep 26 '12 at 12:27
  • My trick is simply `sudo chmod 0 /Applications/Xcode.app/Contents/PlugIns/IDE{Subversion,Git}.ideplugin` – tc. Apr 24 '13 at 18:38
  • Thanks! Works also on Xcode 5(preview 4). The path is same as for 4.3+ – Primoz990 Jul 30 '13 at 10:59
10

Try this:

  1. Window -> Organizer
  2. Repositories
  3. Select your repository
  4. Click the "-" button at the bottom of the Organizer window

Unfortunately, it seems that you have to do this every time you restart Xcode.

Hyung
  • 159
  • 7
  • 1
    Yes, this seems to be the only way, and you're right, it just re-binds when you re-launch. Accepting... – Mark Beaton Apr 21 '11 at 10:41
  • 3
    FYI, I've logged a ticket (9316273) in Apple's Radar bug tracking system, requesting the ability to disable change tracking for a given working copy. – Mark Beaton Apr 21 '11 at 10:58
  • 2
    Another FYI - Apple have accepted this is a bug, so it may be fixed in the future... – Mark Beaton May 09 '11 at 06:05
7

XCode 5.1 now has this option in the settings, and it's called "Source Control":

Disable source control

MANIAK_dobrii
  • 6,014
  • 3
  • 28
  • 55
2

In xcode 5 the repository option has been moved. It is now in XCode > Preferences > Accounts. Select your repository and click - at the bottom to delete it.

enter image description here

PiTheNumber
  • 22,828
  • 17
  • 107
  • 180
1

Since the /Developer directory no longer exists, the IDESubversion.ideplugin has been relocated in Xcode version 4.3

The new path is: /Applications/Xcode/Contents/Plugins/IDESubversion.ideplugin

Istvan
  • 11
  • 2
  • Removing both IDESubversion.ideplugin and IDEGit.ideplugin caused an error when launching Xcode: "Missing required components. Reinstall the Xcode Tools." This is in Xcode 4.3.2. – davidcann Apr 23 '12 at 02:34
-1

I'm not in front of my XCode IDE, but try this:

  1. Double click the project to set the settings
  2. Select "Subversion" in the SCM box and "Edit"
  3. Select "Disable SCM"

This should, at the very least, get rid of your console statements.

Rick
  • 699
  • 1
  • 6
  • 17
  • Thanks Rick, but I can't find the SCM box you're referring to in my project settings... Remember this is Xcode 4 I'm dealing with here, not Xcode 3 – Mark Beaton Mar 30 '11 at 22:48
  • I apologize for that Mark. I was just going from memory. I'll wait to get home and validate further. Although I use SVN with my projects, there's no "SCM" option in your menu, to configure your repositories? Perhaps you project name is inadvertently in that repository listing. Also, you project settings, you should have a selection for "Project Roots & SCM." You can validate here that your project is not associated with a repository. – Rick Mar 31 '11 at 13:11
  • I'm thinking that it's reading the SVN directories and assuming it needs to handle the SVN connection. – Rick Mar 31 '11 at 13:43