Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"could not build module" errors on Xcode 16.2, react native 0.76.6 #49347

Open
michalis-ligopsychakis opened this issue Feb 12, 2025 · 6 comments
Labels
Needs: Attention Issues where the author has responded to feedback. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Version Info

Comments

@michalis-ligopsychakis
Copy link

michalis-ligopsychakis commented Feb 12, 2025

Description

Hello all:) I am using Xcode 16.2, react native 0.76.6, simulator -> iPhone 15(17.0), mac M1 Sequoia 15.2.
Many "could not build module" errors appear while building modules inside iPhoneSimulator18.2.sdk.

The think is that I don't even use this simulator and if I try to delete it, the Xcode hides all other simulator options and requires 18.2 to download..

Of course I already tried to clean and delete and reinstall everything but nothing works..
Any help is welcome:) Thanks!

Steps to reproduce

  1. Install Xcode 16.2
  2. Migrate a react native project from version 0.74.4 to 0.76.6
  3. Install on Xcode simulator iPhone15 (17.0)
  4. Run build

React Native Version

0.76.6

Affected Platforms

Runtime - iOS

Output of npx react-native info

System:
  OS: macOS 15.2
  CPU: (8) arm64 Apple M1
  Memory: 132.66 MB / 8.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 23.6.0
    path: ~/.nvm/versions/node/v23.6.0/bin/node
  Yarn: Not Found
  npm:
    version: 10.9.2
    path: ~/.nvm/versions/node/v23.6.0/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23726.103.2422.12816248
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.1.3
    wanted: ^15.1.3
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.76.6
    wanted: ^0.76.6
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: false
  newArchEnabled: false
iOS:
  hermesEnabled: false
  newArchEnabled: false

Stacktrace or Logs

I've added screenshots..

Reproducer

repo is private

Screenshots and Videos

Image
@react-native-bot
Copy link
Collaborator

Warning

Could not parse version: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.76.2.

@react-native-bot react-native-bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. and removed Needs: Triage 🔍 labels Feb 12, 2025
@react-native-bot
Copy link
Collaborator

Warning

Could not parse version: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.76.2.

@react-native-bot
Copy link
Collaborator

Warning

Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:

@michalis-ligopsychakis michalis-ligopsychakis changed the title "could not build module" errors on Xcode 16.2, react native 0.76 "could not build module" errors on Xcode 16.2, react native 0.76.6 Feb 12, 2025
@sarthak-d11
Copy link
Collaborator

@michalis-ligopsychakis It will be great if you can provide a reproducer for this issue

@michalis-ligopsychakis
Copy link
Author

@sarthak-d11 thanks for the response:)
I cannot share repo cause it's private.. However the issue is caused somehow from simulator 18.2 I think..
But I don't even use it.. I also have changed the "EXCLUDED_ARCH" in Xcode to "x86_64" because I'm on a M1 mac..
Any ideas?

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Feb 12, 2025
@cipolleschi
Copy link
Contributor

The issue is not due to the simulator.

It is more likely due to some third party dependency that does not properly defines modules in iOS and therefore it fails to build.

Can you try to create a new empty project running:

npx @react-native-community/cli init <AppName> --version 0.76.6

And try to build and run it?

If that works, the problem is specific of the project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Attention Issues where the author has responded to feedback. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Version Info
Projects
None yet
Development

No branches or pull requests

4 participants