问题描述
(我有一台运行 Mountain Lion 和 Xcode 4.5.2 的 mac)
(I have a mac running Mountain Lion with Xcode 4.5.2)
我不久前更改了我的用户名,Xcode 开始在 $path_to_.xcodeproj/xcuserdata/blackl.xcuserdatad
使用新用户名重新创建 xcuserdata
目录.从那以后我就一直这样使用它,我不记得在更改后是否有任何东西似乎已经重置,所以那里的任何内容一定不是太重要......
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
中存储了什么,我应该如何处理旧的?有一些旧项目改了之后就没有打开了;我可以重命名这些目录.较新的项目将有两个目录(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?
推荐答案
您可以安全地删除 xcuserdata 目录.它主要包含个人设置,如断点、用户界面布局、打开文件、自动快照配置等.
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.
大多数人在他们的版本控制软件中忽略这些文件.我也这样做.
Most people ignore those files in their version control software. I do that too.
顺便说一句:$path_to_.xcodeproj/project.xcworkspace
中有另一个 xcuserdata 目录.
BTW: there's another xcuserdata directory inside of $path_to_.xcodeproj/project.xcworkspace
.
这篇关于我应该如何处理使用旧用户名的 xcuserdata 目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!