I bought a new MacBook Air with the new M1 chip and I migrated my data from my previous intel mac to this. Now when I try to run git
I get the following error:
xcrun: error: 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)).
When I run it using arch -x86_64 git --version
it works and gives the following:
arch -x86_64 git --version
git version 2.24.3 (Apple Git-128)
Is there any solution to this so I can run git
alone in the terminal without having to specify the architecture first?
git version 2.32.0 (Apple Git-132)
here.xcode-select --install
I get the following:xcode-select: error: command line tools are already installed, use "Software Update" to install updates