gpt4 book ai didi

flutter - xcrun : error: invalid active developer path, problem after zsh update for flutter

转载 作者:行者123 更新时间:2023-12-03 07:46:26 26 4
gpt4 key购买 nike

我将shell更新为zsh,当我输入flutter --version时,得到了以下信息:

'''xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),   
missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Failed to find the latest git commit date: VersionCheckError: Command exited
with code 1: git -c log.showSignature=false log -n 1 --pretty=format:%ad
--date=iso
Standard out:
Standard error: xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun

Returning 1970-01-01 01:00:00.000 instead.
Flutter 0.0.0-unknown • channel unknown • unknown source
Framework • revision () • 1970-01-01 01:00:00.000
Engine • revision b8752bbfff
Tools • Dart 2.10.2'''
我该怎么办?我不是XD这些方面的专家。
亲切的问候,

最佳答案

错误消息似乎与Xcode CLI工具有关?如果是这样,请尝试使用以下命令将其重置:

xcode-select --install
sudo xcode-select -s /Library/Developer/CommandLineTools/

关于flutter - xcrun : error: invalid active developer path, problem after zsh update for flutter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64489433/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com