I have installed Xcode 5 developer preview 3. Before it i had developer preview 2 and now, sometimes in my terminal I see error, for example when I try to autocomplete some comm
It happened to me once: xcode-select -print-path
did stick to the same value and wasn't changing. It appeared that it was always equal to DEVELOPER_DIR environment variable. According to the manpage of xcode-select:
When DEVELOPER_DIR is set, its value will be used instead of the value last passed to -switch xcode_path
So, unsetting DEVELOPER_DIR makes xcode-select -switch working.