-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
How frequently does the bug occur?
Always
Description
Our React Native app fails to build when use_frameworks! :linkage => :static is set in the Podfile. This issue started occurring after upgrading to Realm JS v12.12.0. Given that this configuration was working in previous versions, we expected it to continue working after a minor version upgrade.
I believe the issue was introduced by #6791.
This issue is critical for our project as we rely on react-native-firebase, which requires the use_frameworks! :linkage => :static configuration.
Stacktrace & log output
❌ (/Users/gvanderclay/workspace/my-app/node_modules/realm/binding/apple/RealmReactModule.mm:24:9) 22 | #import <React/RCTInvalidating.h> 23 | #import <ReactCommon/CallInvoker.h> > 24 | #import <React-featureflags/react/featureflags/ReactNativeFeatureFlags.h> | ^ 'React-featureflags/react/featureflags/ReactNativeFeatureFlags.h' file not found 25 | #import <jsi/jsi.h> 26 | 27 | #import <arpa/inet.h>
Can you reproduce the bug?
Always
Reproduction Steps
I have created a minimal reproducible example to demonstrate the issue. The repository is available here, and it includes detailed instructions on how to reproduce the build failure.
Note: The example uses Expo with expo-build-properties to set use_frameworks!, but the issue persists regardless of this context.
Version
12.12.0
What services are you using?
Local Database only
Are you using encryption?
Yes
Platform OS and version(s)
iOS only
Build environment
No response
Cocoapods version
1.15.2