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

Posted 李昊轩的博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了报错 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

问题完美解决:

以上是关于报错 maun.dylib (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e))))的主要内容,如果未能解决你的问题,请参考以下文章