plist中的问题是com.apple.dt.Xcode
这样你就可以说:
defaults read com.apple.dt.Xcode
,它会分析并打印Xcode的偏好。
有问题的关键是IDEApplicationwideBuildSettings
。现在
IDEApplicationwideBuildSettings = {
"MON_SOURCE_ROOT" = "/Volumes/Dir/Dir/Dir/";
"MON_THIRD_PARTY_SOURCE_ROOT" = "/Volumes/Dir/Dir/ThirdParty/";
};
,您可以使用defaults
的write
选项来设置或删除使用命令行的值:
如果你有几个定义,你可能会看到类似。
defaults write com.apple.dt.Xcode IDEApplicationwideBuildSettings THE_ARRAY_OF_KEY_VALUE_PAIRS
其中THE_ARRAY_OF_KEY_VALUE_PAIRS
是将其设置为的值。直到你找出确切的命令
IDESourceTreeDisplayNames = {
"MON_SOURCE_ROOT" = "MON_SOURCE_ROOT";
"MON_THIRD_PARTY_SOURCE_ROOT" = "MON_THIRD_PARTY_SOURCE_ROOT";
};
上一份工作:
您可能还需要更新IDESourceTreeDisplayNames
创建别名。
优秀!!!谢谢! – Steve 2012-08-20 14:33:19
@Steve不客气 – justin 2012-08-20 22:04:39