【问题标题】:Command Line Tools location in SierraSierra 中的命令行工具位置
【发布时间】:2017-04-19 01:15:18
【问题描述】:

我刚刚更新到 Sierra 并从 Developer Portal 安装了 Xcode 8.2.1。

(为什么我没有使用 App Store?阅读here。)

过去,要升级到新版本的 Xcode,我会从门户下载主要的 .xip 和 CLT 包,将 Xcode 替换为 /Applications,然后安装工具包。在 8.x 中,.xip 似乎包含安装的两个软件包,因为 Homebrew 不会抱怨这些工具有点过时 - brew doctor

但是,brew config 将 CLT 列为N/A。如果没有单独的下载,如何找到它们的安装位置?

$ brew config
HOMEBREW_VERSION: 1.1.13-19-g55c02ae77
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 55c02ae7747bf05eadec95c91497d06ec3dd2ded
Last commit: 17 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: c1b829f4e31955bc8c9e19227ab7a41e92ab9b77
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.12.2 => /usr/local/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /Users/Chris/.rbenv/shims/ruby => /usr/local/Cellar/ruby/2.4.1_1/bin/ruby
Java: N/A
macOS: 10.12.3-x86_64
Xcode: 8.2.1
CLT: N/A
X11: N/A

【问题讨论】:

    标签: xcode homebrew xcode-command-line-tools


    【解决方案1】:

    更糟糕的是,2017 年 4 月 26 日在我的 Macbook Pro 上自动下载并安装 Xcode 的 CLT 会导致一些奇怪的事情,例如无法使用的内置摄像头。

    重新启动 3 次后,内置摄像头仍然无法使用。

    在更新后必须卸载 XCode:

    Command Line Tools (macOS Sierra version 10.12) for Xcode
    Version 8.3.  The Command Line Tools enable UNIX-style development...
    Installed Apr 26, 2017
    
    Xcode 8.3.2 includes Swift 3.1 and SDKs for iOS 10.3 ...
    Installed Apr 20, 2017
    

    然后相机在重新启动后再次开始工作。

    【讨论】:

      猜你喜欢
      • 2015-12-29
      • 2013-09-03
      • 1970-01-01
      • 2019-03-22
      • 2012-01-14
      • 1970-01-01
      • 2013-05-09
      • 1970-01-01
      相关资源
      最近更新 更多