Skip to content

🔴 Undefined symbol _swift_willThrowTypedImpl when building for arm64 architecture #4783

Closed as not planned
@nurmanbe7ov

Description

@nurmanbe7ov

What React Native libraries do you use?

React Navigation

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

5.32.0

How does your development environment look like?

System:
    OS: macOS 15.3.1
    CPU: (11) arm64 Apple M3 Pro
    Memory: 94.45 MB / 18.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm
    Watchman: 2024.07.15.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.15.2 - /usr/local/bin/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: 2024.1 AI-241.18034.62.2411.12169540
    Xcode: 16.2/16C5032a - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.15 - /usr/bin/javac
    Python: Not Found
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.4 => 0.63.4 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Sentry.init()

Sentry.init({
  dsn: 'https://...@sentry.io/...'
  // other options
});

Steps to Reproduce

  1. Install @sentry/react-native into a React Native project
  2. Run pod install inside ios folder
  3. Open the project in Xcode
  4. Build the project for a real iOS device
  5. Build fails with linker error: Undefined symbols for architecture arm64

Expected Result

The app should build successfully without linker errors.

Actual Result

Build fails with the following error:
Undefined symbols for architecture arm64:
  "_swift_willThrowTypedImpl", referenced from:
      _swift_willThrowTyped in libSentry.a[266](SentryOnDemandReplay.o)
ld: symbol(s) not found for architecture arm64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Needs Discussion

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions