Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depending on [email protected] and @react-native-firebase/crashlytics together causes build failure when on New Architecture #779

Open
tibbe opened this issue Mar 10, 2025 · 0 comments

Comments

@tibbe
Copy link

tibbe commented Mar 10, 2025

I've been tracking down a build failure that only happens when on the New Architecture (i.e. RN 0.77.1). After much investigation I've concluded that the issues happens when

The full error is at invertase/react-native-firebase#8393 (comment) but the short of it is:

> Task :app:configureCMakeRelWithDebInfo[arm64-v8a] FAILED
C/C++: CMake Error at /Users/tibbe/work/RNFBRepro/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:11 (add_subdirectory):
C/C++:   add_subdirectory given source
C/C++:   "/Users/tibbe/work/RNFBRepro/node_modules/react-native-contacts/android/build/generated/source/codegen/jni/"
C/C++:   which is not an existing directory.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/tibbe/work/RNFBRepro/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
C/C++:   CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/tibbe/work/RNFBRepro/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:103 (target_link_libraries):
C/C++:   Cannot specify link libraries for target "react_codegen_RNContactsSpec"
C/C++:   which is not built by this project.
C/C++: Call Stack (most recent call first):
C/C++:   CMakeLists.txt:31 (include)

I'm guessing react-native-contacts is doing something wrong when it comes to the New Architecture, possibly related to codegen. If you check out https://github.com/benetics-ag/RNFBRepro, add [email protected], and run npx react-native build-android --mode=release --verbose you can see the failure. If you again remove [email protected] (and clean up e.g. node_modules/ and everything else) it builds again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant