I have this weird error when running sbt scala project:
java.lang.UnsatisfiedLinkError: dlopen(/Users/user/Library/Caches/JNA/temp/jna11185077732330192528.tmp, 0x0009):
tried: '/Users/user/Library/Caches/JNA/temp/jna11185077732330192528.tmp' (mach-o file, but is an incompatible architecture
(have 'x86_64', need 'arm64')),
'/System/Volumes/Preboot/Cryptexes/OS/Users/user/Library/Caches/JNA/temp/jna11185077732330192528.tmp' (no such file),
'/Users/user/Library/Caches/JNA/temp/jna11185077732330192528.tmp'
(mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
SBT version: 1.7.2.
Scala version: 2.13.8
Java version: 11.0.18
I am using Mac OS 13.3.1 with M1 chip