react-native: New Arch 0.72.1 issue with use_frameworks! - file not found.How to fix?
Description
Getting error on RCTImageComponentView.mm - node_modules/react-native/React/Fabric/Mounting/ComponentViews/Image/RCTImageComponentView.mm
#import <react/renderer/imagemanager/RCTImagePrimitivesConversions.h>
▸ Compiling RCTImageComponentView.mm
❌ /Users/bill_1/theclub/TheClub/node_modules/react-native/React/Fabric/Mounting/ComponentViews/Image/RCTImageComponentView.mm:19:9: 'react/renderer/imagemanager/RCTImagePrimitivesConversions.h' file not found
How do I fix this ?
React Native Version
0.72.1
Output of npx react-native info
info Fetching system and libraries information...
System:
OS: macOS 13.4.1
CPU: (12) arm64 Apple M2 Max
Memory: 785.88 MB / 32.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.16.0
path: /opt/homebrew/opt/node@18/bin/node
Yarn:
version: 1.22.19
path: /opt/homebrew/bin/yarn
npm:
version: 9.5.1
path: /opt/homebrew/opt/node@18/bin/npm
Watchman:
version: 2023.05.22.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.12.1
path: /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 22.4
- iOS 16.4
- macOS 13.3
- tvOS 16.4
- watchOS 9.4
Android SDK:
API Levels:
- "30"
- "33"
Build Tools:
- 30.0.3
- 33.0.0
- 33.0.2
System Images:
- android-33 | Google APIs ARM 64 v8a
- android-33 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.10121639
Xcode:
version: 14.3.1/14E300c
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:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.1
wanted: ^0.72.1
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: true
Steps to reproduce
See above
Snack, code example, screenshot, or link to a repository
See above
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 19 (15 by maintainers)
It is not a question. I am getting an error when building with
This is the error I get when using
use_frameworks! :linkage => :static
This is pretty insulting as well, since I have been fixing tons of packages to work with use_frameworks.
The Discussion link - https://github.com/reactwg/react-native-new-architecture/discussions/115 does not allow me to report back (since someone turned off all comments there) on you guide to get use_frameworks to work with react-native. Asking me to use Stack Overflow is not useful, considering use_frameworks and RCT_NEW_ARCH_ENABLED=1 is quite new!
Compiling node_modules/react-native/React/Fabric/Mounting/ComponentViews/Image/RCTImageComponentView.mm is part of React Native proper and I am unsure which Podspec controls that. I am looking around, and I am sure I can fix the header once I can figure out where the PODSPEC is. There are several under Fabric.