报错 maun.dylib (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e))))

最近换了m1芯片的笔记本
遇到了这个问题
使用graalvm 编译 jar 包的时候遇到的

在这里插入图片描述

解决方案

直接干掉此目录

sudo rm -r /Library/Developer/CommandLineTools

等待自动重新下载xcode

问题完美解决:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_33709508/article/details/127367864