-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New Architecture - Builds fail when Podfile uses static linking #8026
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
Comments
My build fails at different point but this bit is working. I have this line use_frameworks! :linkage => :static completely removed. What I have instead is $RNFirebaseAsStaticFramework = true. It sits below modular headers.
|
Thanks for the update. After applying this change, the build failure issue was resolved. However, now the app gets stuck on the splash screen. I checked the logs in Xcode, but I couldn't identify a clear reason for the issue. Let me know if you have any suggestions or if there's anything specific I should look into. @ivosw @kevin-madden-gf |
for Firebase you must you must use use_frameworks! :linkage => :static, anyone that uses modular_headers stuff in their Podfile is going to have compilation problems invertase/react-native-firebase#8271 (comment) |
@manuhook I applied use_frameworks! :linkage => :static and removed all modular_headers. But now I’m getting the same RCTHost.h file not found error mentioned earlier. Any ideas how to fix this without reverting changes? |
I have the same error, I didn't find a solution for the moment :( |
I think I’ve resolved the errors related to
Tested with RNN 8.0.0 and React Native 0.76.7 - New Arch enabled. You need to modify the ReactNativeNavigation.podspec file as follows:
Now I have this error but I believe it's not linked to use_frameworks! :linkage => :static |
Could anyone with knowledge about this issue point us in a direction? My understanding is that the imports/headers need to be resolved somehow for the New Architecture + static linking combination? |
Uh oh!
There was an error while loading. Please reload this page.
What happened?
When using static frameworks in the Podfile:
Use static frameworks
use_frameworks! :linkage => :static
Build fail with an error in RNNButtonView (RCTHost.h file not found) - see the image from Xcode below:
Static linking is required for some packages, e.g. react-native-firebase.
This seems to have something to do with the builds that support new architecture. Build 8.0.0 with new architecture disabled builds fine.
What was the expected behaviour?
The build completes without issue.
Was it tested on latest react-native-navigation?
Help us reproduce this issue!
Try using a Podfile like the one below, on 8.1.0 RC1, to replicate
In what environment did this happen?
React Native Navigation version: 8.1.0 RC1
React Native version: 0.76.9
Has Fabric (React Native's new rendering system) enabled: (yes/no) yes
Node version: 22
Device model: iPhone 11
iOS version: 18.1
The text was updated successfully, but these errors were encountered: