ARMINCERF.com

July 18, 2021Last Updated: December 24, 2024

Getting XCode 12 to build React Native Projects on an M1 Mac

If you are having trouble getting just the React Native tutorial to build on your M1 Mac, simply follow the following steps:

  1. Follow this guide https://reactnative.dev/docs/environment-setup, but use a Rosetta terminal for all of the steps. To create a Rosetta terminal I duplicated Terminal.app, renamed it to X86Term, and ticked 'Open in Rosetta' in the Get Info menu

    Terminal Rosetta Settings

  2. In the Get Info menu for XCode (right click, Get Info), set 'Open using Rosetta'

  3. Open Xcode, find the .xcworkspace file and open it

    XCode Workspace

  4. Add arm64 to Excluded Architectures as shown below

Excluded Architectures Setting

That's it! you should be able to run everything as normal after that. Obviously its not ideal to run things under Rosetta, but I'm sure with time the underlying issues will be resolved.