Can you disable version control integration in Xcode 4?
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开发者_Python百科 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?
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
Try this:
- Window -> Organizer
- Repositories
- Select your repository
- Click the "-" button at the bottom of the Organizer window
Unfortunately, it seems that you have to do this every time you restart Xcode.
XCode 5.1 now has this option in the settings, and it's called "Source Control"
:
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.
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
I'm not in front of my XCode IDE, but try this:
- Double click the project to set the settings
- Select "Subversion" in the SCM box and "Edit"
- Select "Disable SCM"
This should, at the very least, get rid of your console statements.
精彩评论