Skip to content

React Native not building on Xcode 12.5 #31592

@yepes

Description

@yepes

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

Created a RN blank project on a new mac mini m1 apple silicon. SO: Big Sur 11.3.1

npx react-native init AwesomeProject

After that, yarn ios works fine. The app is launched correctly on the ios simulator.

if I open Xcode and try to build, I get this error:

Showing All Messages
/Users/myusername/Proyectos/AwesomeProject/ios/AwesomeProject.xcodeproj The linked library 'libPods-AwesomeProject.a' is missing one or more architectures required by this target: arm64.

React Native version:

"dependencies": {
    "react": "17.0.1",
    "react-native": "0.64.1"
  },

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. Create a blank RN default project on an apple m1 computer
  2. Check that yarn ios works just fine
  3. Try to open ios/AwesomeProject.xcworkspace and hit play
  4. The above error should appear

Expected Results

The app should work when yarn ios and when running in xcode

Snack, code example, screenshot, or link to a repository:

Just the default code created by npx react-native init AwesomeProject

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions