react-native-shake: Cannot specify link libraries for target "react_codegen_RNShakeSpec"
I’m facing this error on Android
Cannot specify link libraries for target "react_codegen_RNShakeSpec" which
is not built by this project.
Call Stack (most recent call first):
CMakeLists.txt:31 (include)
ninja: error: rebuilding 'build.ninja': subcommand failed
RN: 0.75.4 react-native-shake: 6.0.0-beta.3
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (3 by maintainers)
any update?
Updated the CI to skip build-ios step for now.
The latest version (6.7.7) should work with both iOS and Android, I’ve tested it with release builds.
For some reasons, enabling
includesGeneratedCode: truewill make the published lib unusable for Android, but passes the CI. Changing it to false would make it work (for both platforms).There is a discussion here, might be related to that: https://github.com/callstack/react-native-builder-bob/issues/789
@sapkalabs/react-native-shake https://github.com/SapkaLabs/react-native-shake https://www.npmjs.com/package/@sapkalabs/react-native-shake
To the package author: You can my code and incorporate it into the repository to update the package. I will not create a PR because it would take 4 hours of work, and given your absence approximately six months, I do not see a reason to proceed in that manner
Is this resolve? i got build fails on react-native-shake: 6.0.0-beta.3
edit: downgrade to 5.6.2
I forgot that I also had to delete the
node_modules/react-native-shake/android/generatedfolder and contents and my project’sandroid/app/.cxxandandroid/app/buildfolders. I then changed the package.json codegenConfigAnd for some reason patch-package doesn’t work on package.json by default, so I had to use
yarn patch-package --exclude 'nothing' react-native-shake