Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-2870

Realm does not build on iOS with `use_frameworks! :linkage => :static` as of version 12.12.0

      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

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      ❌  (/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

            Assignee:
            kraen.hansen@mongodb.com Kræn Hansen
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: