xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun ...

简介: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrunimage.png解决方法:打开终端输入xcode-select --install回车后,系统弹出下载xcode,点击确认,下载完成后即可。
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
img_59f900dfc0258fa0a8ae185f4b75f014.png
image.png

解决方法:

打开终端输入

xcode-select --install

回车后,系统弹出下载xcode,点击确认,下载完成后即可。(实际上不是下载xcode,可能下载xcode有关插件,下载时长约1分钟)

出现这个错误原因猜想可能是因为之前安装过xcode卸载后出现的。

相关文章
|
iOS开发
解决App Installation failed, No code signature found.
解决App Installation failed, No code signature found.
393 0
|
Ubuntu Unix Linux
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
运行JProfiler:ERROR: Invalid license key. Aborting
运行JProfiler:ERROR: Invalid license key. Aborting
443 0
运行JProfiler:ERROR: Invalid license key. Aborting
|
8月前
|
开发工具
App Store Connect Operation Error ERROR ITMS-90087: “Unsupported Architectures
App Store Connect Operation Error ERROR ITMS-90087: “Unsupported Architectures
68 1
|
7月前
|
Python
【已解决】WARNING: Ignoring invalid distribution xxx
【已解决】WARNING: Ignoring invalid distribution xxx
|
8月前
|
编译器 Linux 开发工具
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools
86 0
|
开发工具
WARNING: library configuration mismatch
WARNING: library configuration mismatch
336 0
|
开发者 iOS开发
Xcode运行报错The operation couldn’t be completed. Unable to launch xxx because it has an invalid code...
Xcode运行报错The operation couldn’t be completed. Unable to launch xxx because it has an invalid code...
964 0
|
程序员 iOS开发 开发者
iOS开发:程序打包提示Ignoring file XXX missing required architecture arm7 in file XXX错误
前段时间在开发过程中遇到一个iOS打包报错Ignoring file XXX missing required architecture arm7 in file XXX的问题,然后回想了一下问题所在,是因为集成了ijk播放器插件,然后ijk三方库不支持arm7造成的报错。
199 0
iOS开发:程序打包提示Ignoring file XXX missing required architecture arm7 in file XXX错误
|
缓存 开发工具 iOS开发
Xcode The operation couldn’t be completed. (LaunchServicesError error 0.)问题的解决
Xcode The operation couldn’t be completed. (LaunchServicesError error 0.)问题的解决
Xcode The operation couldn’t be completed. (LaunchServicesError error 0.)问题的解决