您可以在 Xcode 4 中禁用版本控制集成吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5466254/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can you disable version control integration in Xcode 4?
提问by Mark Beaton
I use Cornerstonefor 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)...
我使用Cornerstone来管理我的 Subversion 存储库,所以我不需要 Xcode 的集成,而且我注意到 Xcode 正在将大量与 SVN 相关的输出转储到我的控制台中(它识别出我的项目是本地 SVN 副本)...
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.
特别是,ERROR: Your working copy returned an SVN status of "external" that we don't handle (yet)
由于我的 svn:externals ,有大量消息。
This has to be slowing the IDE down - does anyone know of any way to disable the SVN integration in Xcode 4?
这必须减慢 IDE 的速度 - 有没有人知道在 Xcode 4 中禁用 SVN 集成的任何方法?
回答by Mark Beaton
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
)...
对!这似乎永远阻止了它 - 只需将以下包重命名为 IDESubversion.ideplugin 以外的其他内容(我已重命名我的IDESubversion-DISABLED.ideplugin
)...
Xcode 5.1+
This is finally a built-in Xcode preference - see @MANIAK_dobrii's answerfor details.
Xcode 5.1+
这最终是一个内置的 Xcode 首选项 -有关详细信息,请参阅 @MANIAK_dobrii 的答案。
Xcode 5/Xcode 4.3+:/Applications/Xcode.app/Contents/PlugIns/IDESubversion.ideplugin
Xcode 5/Xcode 4.3+:/Applications/Xcode.app/Contents/PlugIns/IDESubversion.ideplugin
Xcode 4.0 - 4.2:/Developer/Library/Xcode/PrivatePlugIns/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).
请注意,在 Xcode 4.0 和 4.1(可能还有 4.2)中重命名扩展似乎工作正常。但是,从 Xcode 4.3 开始,您可能需要保持扩展名不变,而是重命名包的名称部分(以避免人们在下面的评论中描述的启动错误)。
Tip o' the hat to: Remove git from project in Xcode 4
回答by Hyung
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 时都必须这样做。
回答by MANIAK_dobrii
XCode 5.1 now has this option in the settings, and it's called "Source Control"
:
XCode 5.1 现在在设置中有这个选项,它被称为"Source Control"
:
回答by PiTheNumber
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.
在 xcode 5 中,存储库选项已被移动。它现在在XCode > Preferences > Accounts
. 选择您的存储库并单击底部的 - 将其删除。
回答by Istvan
Since the /Developer directory no longer exists, the IDESubversion.ideplugin has been relocated in Xcode version 4.3
由于 /Developer 目录不再存在,IDESubversion.ideplugin 已在 Xcode 4.3 版中重新定位
The new path is: /Applications/Xcode/Contents/Plugins/IDESubversion.ideplugin
新路径是:/Applications/Xcode/Contents/Plugins/IDESubversion.ideplugin
回答by Rick
I'm not in front of my XCode IDE, but try this:
我不在我的 XCode IDE 前面,但试试这个:
- Double click the project to set the settings
- Select "Subversion" in the SCM box and "Edit"
- Select "Disable SCM"
- 双击项目进行设置
- 在 SCM 框中选择“Subversion”并“编辑”
- 选择“禁用 SCM”
This should, at the very least, get rid of your console statements.
这至少应该摆脱您的控制台语句。