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