Can you disable version control integration in Xcode 4?
Asked Answered
M

6

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?

Myall answered 28/3, 2011 at 23:33 Comment(0)
M
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

Myall answered 11/9, 2011 at 2:31 Comment(13)
I just spent a day trying to stop the damn plugin from ruining my SVN repo. Big thanks for this solution!Meraz
Yep, finally a solution for permanently disabling version control on xcode 4. Thanks!Ladin
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.Lloyd
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...Myall
Update for Xcode 4.3: this still works, plugins are now located at /Applications/Xcode.app/Contents/PlugInsMyall
This does not still work for XCode 4.3 or 4.2. You get a missing components dialog, and XCode refuses to run.Jointless
Pretty strange - works on all my Xcode installations, on multiple machines. What are you renaming the file to?Myall
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!Sandisandidge
Xcode SVN was like a terminator that never die! And finally you succeeded! Tanks!!!Atheism
+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!Ivied
I applied this solution to Xcode 4.5 It does disable Subversion plugin. Thanks!Solarism
My trick is simply sudo chmod 0 /Applications/Xcode.app/Contents/PlugIns/IDE{Subversion,Git}.idepluginVasculum
Thanks! Works also on Xcode 5(preview 4). The path is same as for 4.3+Vicinity
H
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.

Heliocentric answered 20/4, 2011 at 10:52 Comment(3)
Yes, this seems to be the only way, and you're right, it just re-binds when you re-launch. Accepting...Myall
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.Myall
Another FYI - Apple have accepted this is a bug, so it may be fixed in the future...Myall
M
7

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

Disable source control

Munniks answered 15/3, 2014 at 17:17 Comment(0)
K
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

Kitty answered 8/10, 2013 at 9:52 Comment(0)
G
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

Green answered 17/2, 2012 at 14:29 Comment(1)
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.Eme
P
-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.

Porush answered 30/3, 2011 at 17:40 Comment(3)
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 3Myall
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.Porush
I'm thinking that it's reading the SVN directories and assuming it needs to handle the SVN connection.Porush

© 2022 - 2024 — McMap. All rights reserved.