unable to load libxcrun (dlopen(/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib, 0x0005):

刚换了电脑,克隆项目的时候出现以下问题,搜了搜解决方案,发现大家都是Xcode重装解决,我双击Xcode重装,无效果,最后找到了解决办法,感谢大神的办法

unable to load libxcrun (dlopen(/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib, 0x0005): tried: '/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libxcrun.dylib' (no such file)).

 在终端输入如下命令:sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

输入密码回车

再进行克隆的操作,成功!

猜你喜欢

转载自blog.csdn.net/hechenhongbo/article/details/121673920