getsentry / sentry-react-native

Official Sentry SDK for React-Native
https://sentry.io
MIT License
1.55k stars 325 forks source link

iOS Build fails with: cannot be found in forward class object 'SentryCurrentDateProvider' #3908

Open Mitch528 opened 2 weeks ago

Mitch528 commented 2 weeks ago

OS:

Platform:

SDK:

SDK version: 5.24.1

react-native version: 0.74.2

Are you using Expo?

Are you using sentry.io or on-premise?


I have the following issue:

Build fails with:

SentryProfilerState.mm

Property 'date' cannot be found in forward class object 'SentryCurrentDateProvider'

This is also on Xcode 16.0 Beta, so I'm not sure if it's related or not to #3883

Actual result:

Build fails

Expected result:

Build does not fail.

krystofwoldrich commented 2 weeks ago

Hi @Mitch528, thank you for the report, we'll check it.

Are your pods up to date, are you using the 'Sentry/HybridSDK', '8.29.1'? Just want to confirm this since workaround for https://github.com/getsentry/sentry-react-native/issues/3883 was changing manually the Sentry pod version.

Mitch528 commented 2 weeks ago

Hi @krystofwoldrich yeah, pods are up-to-date. I've tried regenerating my Podfile.lock without luck as well.

I didn't explicitly include the pod in my Podfile but it does seem like it's included in the lockfile:

  - RNSentry (5.24.1):
    - hermes-engine
    - React-Core
    - React-hermes
    - Sentry/HybridSDK (= 8.29.1)
...
  - Sentry/HybridSDK (8.29.1)
krystofwoldrich commented 1 week ago

@Mitch528 Thanks for the details.