Codegen runs even in case of old arch. #745
Replies: 3 comments 9 replies
-
What options did you select when creating the library? Does this change make a difference? https://github.com/callstack/react-native-builder-bob/pull/737/files |
Beta Was this translation helpful? Give feedback.
-
I selected "Turbo Module" while creating the library. I tried to run it on react native version 0.72.4 which is an old/legacy architecture-based project. I am not able to patch this change https://github.com/callstack/react-native-builder-bob/pull/737/files into the react-native-builder-bob library. Should I directly put this in my library's podspec? Also, this change seems to be related to new architecture. |
Beta Was this translation helpful? Give feedback.
-
I followed these steps
hence I removed the generated ios folder and then tried to use this library as local package into my old arch project. Now I see that we have includesGeneratedCode as codegen config which includes the generated folder by default with package install. If I make it false and also remove outputDir, while yarn prepare I get issue as Is this same issue here #713 ? If yes, how can I apply this patch? #716 Am I in right direction? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I created a library using create-react-native-library. It works great on projects with new arch enabled. But when I try to run it on projects with old arch, codegen generates the code in generated folder and hence XCode builds fails with "/ios/generated/RNPackageNameSpecJSI.h:12:10 'ReactCommon/TurboModule.h' file not found.
Is there anything I am missing. This is my first time creating library.
@atlj
Beta Was this translation helpful? Give feedback.
All reactions