xcode-select -switch doesn't work: active developer path does not exist

前端 未结 6 1594
灰色年华
灰色年华 2021-02-20 13:22

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

6条回答
  •  遇见更好的自我
    2021-02-20 14:03

    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.

提交回复
热议问题