Open ppolus-miquido opened 2 weeks ago
Hello @ppolus-miquido
Did you find a solution for this ?
I finally found a fix comparing with a fresh initialized library
The issue is that "includesGeneratedCode": true
looks needed in the codegenConfig for new RN versions ?
So I had to:
Add "includesGeneratedCode": true
in the codegenConfig of the package.json
Remove ios/build, ios/Pods, DerivedData
In the module folder I removed ios/generated then ran npx @react-native-community/cli codegen
Then I ran pod install
, cleaned the XCode cache, and launched a new build
You can now use the result in ios/generated
as a patch
I will create a PR for this to create a new version
My only conclusion is that the library files are not being copied to the ios/build/generated directory. As a quick fix, I've been manually copying those files. However, I'm still unsure how to get the pod install command to handle this automatically. FIngers crossed your PR will fix it.
My build fails with RN 0.76.
node_modules/react-native-device-brightness-new/ios/generated/build/generated/ios/react/renderer/components/RNDeviceBrightnessNewSpec/States.cpp:10:10 'react/renderer/components/RNDeviceBrightnessNewSpec/States.h' file not found