Skip to content

Undefined symbols for architecture x86_64 _swift_willThrowTypedImpl Xcode 16.2 #4672

Open
@faisal-urrehman

Description

@faisal-urrehman

What React Native libraries do you use?

React Navigation, React Native without Frameworks, Hermes

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

6.9.1, 5.3.2

How does your development environment look like?

OS: MacOS 15.3
Node: 14.21
React: 16.13.1
React Native: 0.63.4
hermesEnabled: true
newArchEnabled: false

Sentry.init()

    Sentry.init({
      dsn: Config.SENTRY_DSN,
      environment: AppManager.sharedInstance.environment,
      release: getVersion(),
      dist: Platform.OS,
    });

Steps to Reproduce

Build the app using xcode version 16.2

Expected Result

Build should have succeeded

Actual Result

Unable to build the IOS Project on Xcode version 16.2. I have tried multiple versions(5.31.0, 5.32.0, 6.9.1) of sentry but the error persisted.
Here is the error:

Undefined symbols for architecture x86_64:
  "_swift_willThrowTypedImpl", referenced from:
      _swift_willThrowTyped in libSentry.a[287](SentryOnDemandReplay.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Undefined symbol: _swift_willThrowTypedImpl

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    • Status

      Needs More Information
    • Status

      Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions