compiling program on M1 chip
Posted: Tue Mar 22, 2022 9:28 am
Hello,
I have bought a new laptop with a M1-chip. Now when I run 'make' I get the following error:
How can I build a program on a M1 chip.
I have bought a new laptop with a M1-chip. Now when I run 'make' I get the following error:
Code: Select all | Expand
xcrun: error: unable to load libxcrun (dlopen(/Applications/Xcode.app/Contents/Developer/usr/lib/libxcrun.dylib, 0x0005): tried: '/Applications/Xcode.app/Contents/Developer/usr/lib/libxcrun.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libxcrun.dylib' (no such file)).
How can I build a program on a M1 chip.