Open hpelitebook745G2 opened 2 years ago
facing the same issue when upgrading from 0.68.2 to 0.69.4
facing the same issue....no solutions yet ?
I have the same problem, upgrade to 0.70, works fine on intel MacBook, fails on M1
Same issue for me as well, on M1 Macbook
fails on M1
fails on M1 - It took me a week and I can't fix it
Failing on M1 as well.
+1 Same here
same here
Error : 'react/renderer/components/rngesturehandler_codegen/ShadowNodes.h' file not found
same here
anyone found a solution?
Hey so for me the solution was to remove the build folder (not clear build from Xcode but the folder itself), the node_modules folder, Pods folder, package-lock.json, Podfile.lock.
then reinstall everything by doing npm install && cd ./ios && pod install
FYI i got this error after trying to the command line. : RCT_NEW_ARCH_ENABLED=0 bundle exec pod install
I don't know it it is related. but now i just tried to not use the new architecture
Hey so for me the solution was to remove the build folder (not clear build from Xcode but the folder itself), the node_modules folder, Pods folder, package-lock.json, Podfile.lock.
then reinstall everything by doing npm install && cd ./ios && pod install
FYI i got this error after trying to the command line. :
RCT_NEW_ARCH_ENABLED=0 bundle exec pod install
I don't know it it is related. but now i just tried to not use the new architecture
Thanks a lot this worked for me. I have also tried RCT_NEW_ARCH_ENABLED=0 bundle exec pod install
, and I guess the reason was this as well.
Hey so for me the solution was to remove the build folder (not clear build from Xcode but the folder itself), the node_modules folder, Pods folder, package-lock.json, Podfile.lock.
then reinstall everything by doing npm install && cd ./ios && pod install
FYI i got this error after trying to the command line. :
RCT_NEW_ARCH_ENABLED=0 bundle exec pod install
I don't know it it is related. but now i just tried to not use the new architecture
This is not a solution. Of course it'd work if you disable the new architecture.
The error is about codegen issues with the new architecture.
Hey so for me the solution was to remove the build folder (not clear build from Xcode but the folder itself), the node_modules folder, Pods folder, package-lock.json, Podfile.lock. then reinstall everything by doing npm install && cd ./ios && pod install FYI i got this error after trying to the command line. :
RCT_NEW_ARCH_ENABLED=0 bundle exec pod install
I don't know it it is related. but now i just tried to not use the new architectureThis is not a solution. Of course it'd work if you disable the new architecture.
The error is about codegen issues with the new architecture.
For my case - I don't use new architecture.
Currently going through this error, been a few hours, really hard to fix when there's not much information about it
No solution above worked for me, mine looks like related to a library I'm using which I can't tell which one
my-project/react-native/ios/build/generated/ios/react/renderer/components/safeareacontext/ShadowNodes.cpp:11:10 'react/renderer/components/safeareacontext/ShadowNodes.h' file not found
/**
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateShadowNodeCpp.js
*/
#include <react/renderer/components/safeareacontext/ShadowNodes.h>
namespace facebook {
namespace react {
extern const char RNCSafeAreaProviderComponentName[] = "RNCSafeAreaProvider";
} // namespace react
} // namespace facebook
EDIT 1:
I added ENV['RCT_NEW_ARCH_ENABLED'] = '0';
on the top of my Podfile
and then did a rm -rf Pods Podfile.lock && pod install --repo-update
and suddenly it works, which I find weird because I've done the equivalent in the terminal by running RCT_NEW_ARCH_ENABLED=0 pod install
and it didn't work. Now I'm not sure about the repercussions of setting ENV['RCT_NEW_ARCH_ENABLED'] = '0';
but I didn't really intend to use the new arch at the moment because support is mostly experimental. Below is the dependencies on my package.json
"dependencies": {
"@react-native-firebase/app": "^16.4.6",
"@react-native-masked-view/masked-view": "^0.2.8",
"@react-navigation/native": "^6.1.0",
"@react-navigation/native-stack": "^6.9.5",
"@react-navigation/stack": "^6.3.8",
"date-fns": "^2.29.3",
"expo": "^47.0.0",
"expo-barcode-scanner": "~12.1.0",
"expo-camera": "~13.1.0",
"fluxible-js": "^6.1.5",
"native-base": "^3.4.25",
"react": "18.2.0",
"react-fluxible": "^6.0.7",
"react-native": "0.70.6",
"react-native-config": "^1.4.11",
"react-native-encrypted-storage": "^4.0.3",
"react-native-gesture-handler": "^2.8.0",
"react-native-permissions": "^3.6.1",
"react-native-qrcode-svg": "^6.1.2",
"react-native-safe-area-context": "^4.4.1",
"react-native-screens": "^3.18.2",
"react-native-sound-level-monitor": "^1.1.0",
"react-native-svg": "^13.6.0",
"react-native-uuid": "^2.0.1",
"react-native-webrtc": "1.106.1"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/runtime": "^7.12.5",
"@react-native-community/eslint-config": "^3.2.0",
"@tsconfig/react-native": "^2.0.2",
"@types/jest": "^29.2.4",
"@types/node": "^18.11.12",
"@types/react": "^18.0.21",
"@types/react-native": "^0.70.6",
"@types/react-test-renderer": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^5.45.1",
"@typescript-eslint/parser": "^5.45.1",
"@typescript-eslint/typescript-estree": "^5.45.1",
"babel-jest": "^29.3.1",
"babel-plugin-module-resolver": "^4.1.0",
"eslint": "8.29.0",
"eslint-import-resolver-babel-module": "^5.3.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.6",
"eslint-plugin-module-resolver": "^1.5.0",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.2",
"jest": "^29.3.1",
"lint-staged": "^13.1.0",
"metro-react-native-babel-preset": "0.73.4",
"prettier": "^2.8.0",
"react-test-renderer": "18.2.0",
"typescript": "^4.8.3"
},
I also tried RCT_NEW_ARCH_ENABLED=1 npx pod-install ios
and got this error..
when i'm installing 'react-native-image-picker'
I tried removing and re installing node modules, pods, podfiles and everything but still getting the same error. I also got xCode turn into red colored text.
I'm not sure it originally looks like but... anyway.
please solve this problem.. :(
I faced same issue after running
RCT_NEW_ARCH_ENABLED=1 npx pod-install ios
so the solution for me was to run
RCT_NEW_ARCH_ENABLED=0 npx pod-install ios
and then this
Hey so for me the solution was to remove the build folder (not clear build from Xcode but the folder itself), the node_modules folder, Pods folder, package-lock.json, Podfile.lock.
then reinstall everything by doing npm install && cd ./ios && pod install
FYI i got this error after trying to the command line. :
RCT_NEW_ARCH_ENABLED=0 bundle exec pod install
I don't know it it is related. but now i just tried to not use the new architecture
I also go stuck here after running the following:
RCT_NEW_ARCH_ENABLED=1 npx pod-install ios
Solution: Just deleting the Pods and the /build folder and running pod install again did the trick. the node_modules and package.json can be left alone. They're not related.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Same issue still in 2024? anyone found a solution?
Same issue here.
node_modules/react-native/ReactCommon/react/renderer/core/ComponentDescriptor.h:19:10 'react/renderer/graphics/Float.h' file not found
Xcode sucks. This issue is forever without any changes anywhere.
Description
I'm upgrade my RN project to
0.69.2
and got the following errors when compiling:'react/renderer/components/rncore/ShadowNodes.h' file not found
'react/renderer/components/rncore/Props.h' file not found
'react/renderer/components/rncore/EventEmitters.h' file not found
Version
0.69.2
Output of
npx react-native info
Steps to reproduce
Create a new RN project with 0.69.1 or 0.69.2 versions
Snack, code example, screenshot, or link to a repository
Here's my Podfile:
Here's my package.json:
The errors: