xcode 我应该如何处理使用旧用户名的 xcuserdata 目录?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13453727/
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
What should I do about xcuserdata directories with my old username?
提问by Blacklight Shining
(I have a mac running Mountain Lion with Xcode 4.5.2)
(我有一台使用 Xcode 4.5.2 运行 Mountain Lion 的 mac)
I changed my username a while ago, and Xcode has started recreating xcuserdata
directories with the new username at $path_to_.xcodeproj/xcuserdata/blackl.xcuserdatad
. I've been working with it like that since, and I can't remember if anything seemed to have reset after the change, so whatever was in there must not have been too important…
不久前我更改了我的用户名,Xcode 开始xcuserdata
使用新用户名重新创建目录$path_to_.xcodeproj/xcuserdata/blackl.xcuserdatad
. 从那以后我就一直这样使用它,我不记得在更改后是否有任何东西似乎已经重置,所以那里的任何内容一定不是太重要......
What does Xcode store in xcuserdata
and what should I do about the old ones? There are some old projects I haven't opened since the change; I could just rename the directories in those. Newer projects will have two directories (blackl.xcuserdatad
and one with the old username); what should I do in those cases?
Xcode 存储xcuserdata
什么,我应该如何处理旧的?有一些旧项目改了之后就没有打开了;我可以重命名这些目录。较新的项目将有两个目录(blackl.xcuserdatad
一个是旧用户名);在这些情况下我该怎么办?
回答by Matthias Bauch
You can safely delete the xcuserdata directories. It basically contains personal settings like breakpoints, user interface layout, open files, automatic snapshots configuration and so on.
您可以安全地删除 xcuserdata 目录。它基本上包含个人设置,如断点、用户界面布局、打开的文件、自动快照配置等。
Most people ignore those files in their version control software. I do that too.
大多数人在他们的版本控制软件中忽略这些文件。我也这样做。
BTW: there's another xcuserdata directory inside of $path_to_.xcodeproj/project.xcworkspace
.
顺便说一句:.net 中有另一个 xcuserdata 目录$path_to_.xcodeproj/project.xcworkspace
。