react-native-visionos: No such module 'React_RCTSwiftExtensions'
Description
When trying to run the visionos/app.xcworkspace
in xcode I receive the build error: No such module 'React_RCTSwiftExtensions'
Steps to reproduce
- Init the app by following the readme
- Open the visionos xcworkspace file
- See the error in the
App.swift
file
React Native Version
0.73.3
Affected Platforms
Build - MacOS
Output of npx react-native info
info Fetching system and libraries information...
warn Multiple Podfiles were found: ios/Podfile,visionos/Podfile. Choosing ios/Podfile automatically. If you would like to select a different one, you can configure it via "project.ios.sourceDir". You can learn more about it here: https://github.com/react-native-community/cli/blob/main/docs/configuration.md
System:
OS: macOS 14.4
CPU: (10) arm64 Apple M1 Max
Memory: 316.30 MB / 32.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.18.2
path: ~/.nvm/versions/node/v18.18.2/bin/node
Yarn:
version: 4.1.0
path: ~/.nvm/versions/node/v18.18.2/bin/yarn
npm:
version: 9.8.1
path: ~/.nvm/versions/node/v18.18.2/bin/npm
Watchman:
version: 2024.01.22.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.0
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.2
- iOS 17.2
- macOS 14.2
- tvOS 17.2
- visionOS 1.0
- watchOS 10.2
Android SDK: Not Found
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.9971841
Xcode:
version: 15.2/15C500b
path: /usr/bin/xcodebuild
Languages:
Java:
version: 11.0.19
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
### Stacktrace or Logs
```text
`Module map file '/Users/billyjacoby/Library/Developer/Xcode/DerivedData/rnVision-bfdwviiuqrsrexfaodposxiccucp/Build/Products/Debug-xrsimulator/React-RCTSwiftExtensions/React_RCTSwiftExtensions.modulemap' not found
`
Reproducer
https://github.com/billyjacoby/vision-template
Screenshots and Videos
No response
About this issue
- Original URL
- State: closed
- Created 5 months ago
- Comments: 15 (5 by maintainers)
Just to further comment here - updating to Cocopods version 1.15.2 seems to have fixed this so it seems that was the culprit.
Okay a brand new install seems to work fine, which is super strange because I only initialized the other project this morning right before I opened this 🤔