-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Open
Labels
Needs: Author FeedbackNeeds: ReproThis issue could be improved with a clear list of steps to reproduce the issue.This issue could be improved with a clear list of steps to reproduce the issue.Platform: iOSiOS applications.iOS applications.
Description
Description
I make a new project iOS ,
in dir ,yarn install
cd iOS
pod install
then ,I open project.xcworkspace and build, with this error
/Users/yu/Documents/JCProject/RNSdkDemo/RnJCSDKDemo/node_modules/react-native/ReactApple/RCTSwiftUIWrapper/RCTSwiftUIContainerViewWrapper.h:8:9: fatal error: module 'Foundation' is needed but has not been provided, and implicit use of module files is disabled
I have clear caches sometimes, and add Foundation.framework ,but error
Steps to reproduce
1、npx @react-native-community/cli init Project
2、 cd Project
3、yarn install
4、cd iOS
5、pod install
6、open project.xcworkspace build it
React Native Version
0.84.1
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli info
➜ RnJCSDKDemo git:(main) ✗ npx @react-native-community/cli info
info Fetching system and libraries information...
System:
OS: macOS 15.6.1
CPU: (8) arm64 Apple M2
Memory: 1.28 GB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.22.2
path: /opt/homebrew/opt/node@22/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 10.9.7
path: /opt/homebrew/opt/node@22/bin/npm
Watchman:
version: 2026.03.16.00
path: /opt/homebrew/bin/watchman
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: 2022.3 AI-223.8836.35.2231.11005911
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java: Not Found
Ruby:
version: 3.4.0
path: /Users/yu/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.1.0
wanted: 20.1.0
react:
installed: 19.2.3
wanted: 19.2.3
react-native:
installed: 0.84.1
wanted: 0.84.1
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Stacktrace or Logs
/Users/yu/Documents/JCProject/RNSdkDemo/RnJCSDKDemo/node_modules/react-native/ReactApple/RCTSwiftUIWrapper/RCTSwiftUIContainerViewWrapper.h:8:9: fatal error: module 'Foundation' is needed but has not been provided, and implicit use of module files is disabled
8 | #import <Foundation/Foundation.h>
MANDATORY Reproducer
https://github.com/mingzizhennanqu
Screenshots and Videos
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Needs: Author FeedbackNeeds: ReproThis issue could be improved with a clear list of steps to reproduce the issue.This issue could be improved with a clear list of steps to reproduce the issue.Platform: iOSiOS applications.iOS applications.