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

Build with Xcode14.3 RC2 get error when enable _EXPERIMENTAL_CLANG_EXPLICIT_MODULES . #36700

Closed
CrazyFanFan opened this issue Mar 29, 2023 · 2 comments
Labels
Resolution: Duplicate Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)

Comments

@CrazyFanFan
Copy link

CrazyFanFan commented Mar 29, 2023

Description

In Xcode 14.3 RC2, when _EXPERIMENTAL_CLANG_EXPLICIT_MODULES is enabled, module becomes a keyword, which causes build failures.

Clang and the build system support a new mode for building module dependencies called explicit modules which improves build performance, reliability, and correctness. The new mode is opt-in, and can be enabled by setting _EXPERIMENTAL_CLANG_EXPLICIT_MODULES as a user-defined build setting in C and Objective-C projects which build with modules enabled. (104438594)

React Native Version

0.71.4

Output of npx react-native info

System:
OS: macOS 13.3
CPU: (10) arm64 Apple M1 Pro
Memory: 959.05 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 19.8.1 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.5.1 - /opt/homebrew/bin/npm
Watchman: 2023.03.13.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.0 - /Users/kkk/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 14.3/14E222b - /usr/bin/xcodebuild
Languages:
Java: 11.0.12 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: ^0.71.4 => 0.71.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

Any Demo that relies on React-CoreModule opens _EXPERIMENTAL_CLANG_EXPLICIT_MODULES and builds with Xcode14.3RC2

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

Any Demo that relies on React-CoreModule opens _EXPERIMENTAL_CLANG_EXPLICIT_MODULES and builds with Xcode14.3RC2

@CrazyFanFan CrazyFanFan added Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) labels Mar 29, 2023
@github-actions github-actions bot added the Type: Unsupported Version Issues reported to a version of React Native that is no longer supported label Mar 29, 2023
@github-actions
Copy link

⚠️ Unsupported Version of React Native
ℹ️ It looks like your issue or the example you provided uses an unsupported version of React Native. Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please upgrade to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on StackOverflow to get further community support.

@blakef blakef removed Type: Unsupported Version Issues reported to a version of React Native that is no longer supported Needs: Author Feedback labels Mar 31, 2023
@kelset
Copy link
Contributor

kelset commented Apr 3, 2023

duplicate #36739

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Duplicate Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)
Projects
None yet
Development

No branches or pull requests

3 participants