找回密码
 立即注册
查看: 385|回复: 0

解决Unity macOS版无法调用命令行工具(Command Line Tools)

[复制链接]
发表于 2022-1-19 09:54 | 显示全部楼层 |阅读模式
命令行工具(Command Line Tools),简称CLT,即苹果上的命令提示符吧。

Unity工程中使用了托管在码云上的插件,打开此工程时,弹窗提示“Error when executing git command. xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist...”

大意是Unity无法调用CLT来执行Git命令
如果确定已安装CLT和Git,用下列命令重置CLT路径即可:
xcode-select --switch /Library/Developer/CommandLineTools
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )

GMT+8, 2024-9-22 21:26 , Processed in 0.089532 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表