M1 MacBook 终端报错解决记录:Class is implemented in both (...)

提示一:
Class is implemented in both (...)解决:
sudo xcode-select -r

xcode-select --install” and then “xcode-select -s /Library/Developer/CommandLineTools

参考:
https://developer.apple.com/forums/thread/698628
https://developer.apple.com/forums/thread/47579

更新:20223年7月19日:

xcode beta4 系统引入的bug,待升级正式版本后看是否修复

This appears to be a bug introduced by Apple in the latest beta release of their tooling (this has been reproduced on local machines). So far, it seems this does not cause any negative impact other than excessive noise in build outputs, so can be safely ignored.

参考:https://discuss.circleci.com/t/xcode-15-beta-4-released/48645

提示二:

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

解决:

Run sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

参考:
https://github.com/nodejs/node-gyp/issues/569

备注:解决提示一后,出现提示二,暂未解决,待后续更新

猜你喜欢

转载自blog.csdn.net/shaobo8910/article/details/123550298