ARCHS[@]: unbound variable in Xcode 12 ARCHS[@]: unbound variable in Xcode 12 swift swift

ARCHS[@]: unbound variable in Xcode 12


Note :- React native developersAfter wasting couple of hours only solution that worked for me was

Open VSCode and go to directory ios/App/App.xcodeproj/project.pbxproj that fileand perform a search EXCLUDED_ARCHS

EXCLUDED_ARCHS = arm64; 

and delete everyline containing EXCLUDED_ARCHS


You may try below steps:

  1. In Main Project(Not TARGETS), Go to build settings and add Simulator-iOS 14.0 SDK with value arm64 inside Excluded Architecture and repeat the same for the Pod project too.
  2. Delete VALID_ARCHS from your Main project and Pod project both.(You may open the project file in editor to delete this) [You already did this ✅ ]
  3. Upgrade all Pods to the latest version available.

Last, Clean Project and Re-Build.


For Xcode 12.3, when there is no VALID_ARCHS property, follow below steps:

  1. Build Settings -> Build Active Architecture Only -> Debug -> Yes
  2. Add "arm64" in "Excluded Architectures" in build settings of both project and pods project, to run the app in simulator. Remove it while making build on device or archiving the app.