Skip to content

Undefined symbols for architecture arm64 #5274

@francoangulo

Description

@francoangulo

What React Native libraries do you use?

RN New Architecture

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

7.3.0

How does your development environment look like?

⬇  Place the `npx react-native@latest info` output here. ⬇

System:
  OS: macOS 15.2
  CPU: (8) arm64 Apple M2
  Memory: 375.56 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.8.0
    path: /Users/francoangulo/.nvm/versions/node/v22.8.0/bin/node
  Yarn:
    version: 4.10.0
    path: /Users/francoangulo/.nvm/versions/node/v22.8.0/bin/yarn
  npm:
    version: 10.8.2
    path: /Users/francoangulo/.nvm/versions/node/v22.8.0/bin/npm
  Watchman:
    version: 2025.10.06.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/francoangulo/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2025.1 AI-251.26094.121.2512.13930704
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /usr/bin/javac
  Ruby:
    version: 3.3.0
    path: /Users/francoangulo/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.0.0
    wanted: 20.0.0
  react:
    installed: 19.1.0
    wanted: 19.1.0
  react-native:
    installed: 0.81.4
    wanted: ~0.81.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Sentry.init()

if (Config.ENVIRONMENT !== "local") {
  Sentry.init({
    dsn: SENTRY_TOKEN,
    tracesSampleRate: 0.2,
    profilesSampleRate: 0.05,
    async beforeSend(event) {
      if (__DEV__) {
        return null;
      }

      const isEmulator = await DeviceInfo.isEmulator();
      if (isEmulator) {
        return null;
      }

      return event;
    },
  });
}

Steps to Reproduce

1- have the project running normally
2- enable new architecture by setting ENV['RCT_NEW_ARCH_ENABLED'] = '1' on Podfile
3- cd ios && pod install
4- run the app, it throws the error shown above

Expected Result

The app should run

Actual Result

Showing All Errors Only
Undefined symbol: facebook::react::RNSentryReplayMaskProps::RNSentryReplayMaskProps(facebook::react::PropsParserContext const&, facebook::react::RNSentryReplayMaskProps const&, facebook::react::RawProps const&)

Undefined symbol: facebook::react::RNSentryReplayUnmaskProps::RNSentryReplayUnmaskProps(facebook::react::PropsParserContext const&, facebook::react::RNSentryReplayUnmaskProps const&, facebook::react::RawProps const&)

Undefined symbol: facebook::react::RNSentryReplayMaskComponentName

Undefined symbol: facebook::react::RNSentryReplayUnmaskComponentName

Linker command failed with exit code 1 (use -v to see invocation)

Metadata

Metadata

Assignees

Projects

Status

Waiting for: Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions