title: Unable to run git on Mac OS Big Sur
body: <p>Unable to run git on new MacBook running Big Sur</p>
  <p>When I try to run git, I receive the following error:</p>
  <blockquote>
  <p>xcrun: error: unable to load libxcrun (dlopen(/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib, 0x0005): could not use '/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib' because it is not a compatible arch).</p>
  </blockquote>
  <p>I followed the method of forcing which architecture loads, suggested <a href="https://developer.apple.com/forums/thread/652377" rel="noreferrer">here</a>, but still, I’m experiencing the error.</p>
  <p>Now, after running that suggestion I am seeing the following error:</p>
  <blockquote>
  <p>manpath: error: unable to load libxcrun (dlopen(/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib, 5): no suitable image found.  Did find:
  /Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib: mach-o, but wrong architecture
  /Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib: mach-o, but wrong architecture).</p>
  </blockquote>
  <p>I also installed homebrew prior to that error message, although I don’t see how that would be related.</p>
  <p>I really lack experience interacting with Xcode. I feel like on my previous Mac I was just able to get up and running, without any of this hassle, but it’s been awhile so perhaps I'm forgetting.</p>
  <p>How can I identify if Xcode and Command Line Tools are properly installed? If they are not, what is the recommended way to add them?</p>
  <p>I tried installing homebrew to see if I could use it as a work-around, and tried using it to install git, but received the following error:</p>
  <blockquote>
  <p>'brew install git<br />
  Updating Homebrew...<br />
  Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!<br />
  Please create a new installation in /opt/homebrew using one of the &quot;Alternative Installs&quot; from: <a href="https://docs.brew.sh/Installation" rel="noreferrer">https://docs.brew.sh/Installation</a></p>
  </blockquote>
  <p>I am on a MacBook Pro with the new M1 chip- could that be related?</p>