---
title: "Resolve Xcode error 65 for React Native"
canonical_url: "https://www.nutrient.io/guides/react-native/troubleshooting/xcode-error-65-missing-required-target-architectures-react-native/"
md_url: "https://www.nutrient.io/guides/react-native/troubleshooting/xcode-error-65-missing-required-target-architectures-react-native.md"
last_updated: "2026-05-26T18:22:10.564Z"
description: "Learn how to fix Xcode error code 65 when developing React Native apps on M1 Macs by using Rosetta and modifying build settings."
---

# Fix Xcode error code 65 for React Native on M1 Macs

This is a [known React Native issue](https://github.com/facebook/react-native/issues/31941) when developing for iOS devices on Apple Silicon (M1) Macs.

You can learn more about this issue by reading these threads:

- https://developer.apple.com/forums/thread/660782

- https://github.com/facebook/react-native/issues/31438#issuecomment-885454575

- https://github.com/facebook/react-native/issues/31941

Below, we’ll outline some steps you can take to resolve the issue.

## Forcing Xcode and Terminal to open with Rosetta

Go to Finder > Applications. Right-click (Control + click) on Xcode. Select Get Info, and under General, check the box for Open using Rosetta.![applications-xcode](@/assets/guides/react-native/troubleshooting/xcode-error-65-missing-required-target-architectures-react-native/applications-xcode.png)![xcode-get-info](@/assets/guides/react-native/troubleshooting/xcode-error-65-missing-required-target-architectures-react-native/xcode-get-info.png)![enable-rosetta-xcode](@/assets/guides/react-native/troubleshooting/xcode-error-65-missing-required-target-architectures-react-native/enable-rosetta-xcode.png)

In Finder > Applications > Utilities, you’ll find the terminal application. Right-click (Control + click) on the terminal, select Get Info, and under General, enable Rosetta like you did for Xcode.

## Excluding arm64 architecture

In the Build Settings for your React Native project, exclude the `arm64` architecture. To do this, open the workspace file (`your-project-name.xcworkspace`) in the iOS folder of your React Native project.

Then follow these steps in Xcode:

- 1 — Select your project in the Navigator panel.

- 2 — Select your project’s target.

- 3 — Select the Build Settings tab.

- 4 — Search for the Excluded Architectures setting and exclude `arm64` from the Debug and Release builds on Any iOS Simulator SDK.![exclude-architectures-xcode-build-settings](@/assets/guides/react-native/troubleshooting/xcode-error-65-missing-required-target-architectures-react-native/exclude-architectures-xcode-build-settings.png)

After this is done, you can clean your project with Xcode > Product > Clean Build Folder, and then rebuild the project.
---

## Related pages

- [Guide to adding a Nutrient license key in React Native](/guides/react-native/troubleshooting/add-license-key.md)
- [How to find your iOS app bundle ID easily](/guides/react-native/troubleshooting/finding-the-bundle-id.md)
- [Fixing Android back button crash with Nutrient](/guides/react-native/troubleshooting/handling-back-navigation-with-react-native-screens.md)
- [Android Gradle Plugin Requires Java 11](/guides/react-native/troubleshooting/android-gradle-plugin-requires-java-11.md)
- [Out Of Memory Error React Native Android](/guides/react-native/troubleshooting/out-of-memory-error-react-native-android.md)
- [NutrientView inside a modal is blank or crashes on Android](/guides/react-native/troubleshooting/nutrientview-modal-android.md)
- [Find out your Nutrient version easily](/guides/react-native/troubleshooting/getting-the-currently-used-version.md)
- [Textinput Error React Native Android](/guides/react-native/troubleshooting/textinput-error-react-native-android.md)
- [Nightlies](/guides/react-native/troubleshooting/nightlies.md)
- [View controller-based status bar appearance](/guides/react-native/troubleshooting/view-controller-based-status-bar-appearance.md)
- [Fix new architecture build issues in React Native](/guides/react-native/troubleshooting/new-architecture-build-issues.md)
- [Managing Nutrient's render cache effectively](/guides/react-native/troubleshooting/outdated-render-cache.md)
- [Understanding bundle IDs for iOS app development](/guides/react-native/troubleshooting/what-is-a-bundle-id.md)
- [React Navigation](/guides/react-native/troubleshooting/react-navigation.md)
- [Understanding app IDs in Android development](/guides/react-native/troubleshooting/what-is-an-app-id.md)
- [CMake/Ninja build error caused by long file paths on Windows](/guides/react-native/troubleshooting/windows-path-length-cmake-error.md)

