Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问 在用make编译的时候出现了问题3的错误 #9

Open
cainod opened this issue Jul 17, 2020 · 4 comments
Open

请问 在用make编译的时候出现了问题3的错误 #9

cainod opened this issue Jul 17, 2020 · 4 comments

Comments

@cainod
Copy link

cainod commented Jul 17, 2020

在用make编译的时候出现了问题3的错误,然后使用命令sudo xcode-select --switch /Applications/Xcode.app 后弹出错误提示xcode-select: error: invalid developer directory '/Applications/Xcode.app' 如何 解决?

@itenfay
Copy link
Owner

itenfay commented Jul 18, 2020

Hello,

首先确认 Xcode 有没有被卸载,如果 Xcode 被卸载了,你就需要重新安装 Xcode

在终端( Terminal )运行命令:xcode-select,然后提示:xcode-select: error: invalid developer directory。可能原因是没有安装 Xcode Command Line Tools

提供两种方式,自由选择。

  • 解决方法1:

在终端( Terminal )运行如下代码,默认安装(Command Line Tools)最新版本。

xcode-select --install
  • 解决方法2:

登录苹果开发网站(https://developer.apple.com/download/more/),下载 Command Line Tools (xxx) for Xcode 10.x.dmg 文件进行安装。

@cainod
Copy link
Author

cainod commented Jul 18, 2020

Hello,

首先确认 Xcode 有没有被卸载,如果 Xcode 被卸载了,你就需要重新安装 Xcode

在终端( Terminal )运行命令:xcode-select,然后提示:xcode-select: error: invalid developer directory。可能原因是没有安装 Xcode Command Line Tools

提供两种方式,自由选择。

  • 解决方法1:

在终端( Terminal )运行如下代码,默认安装(Command Line Tools)最新版本。

xcode-select --install
  • 解决方法2:

登录苹果开发网站(https://developer.apple.com/download/more/),下载 Command Line Tools (xxx) for Xcode 10.x.dmg 文件进行安装。
cain@c3aindeMac WeChat_tweak % xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
提示已经安装

@cainod
Copy link
Author

cainod commented Jul 18, 2020

@dgynfi

@itenfay
Copy link
Owner

itenfay commented Jul 20, 2020

Hi,

你可以尝试以下操作:

Select Top MenuBar -> Xcode -> Preferences... -> Locations -> Command Line Tools -> Select the lastest version for Xcode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants