Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Underlying Objective-C module 'SentryPrivate' not found #3756

Closed
5 of 11 tasks
gvash opened this issue Apr 15, 2024 · 9 comments
Closed
5 of 11 tasks

Underlying Objective-C module 'SentryPrivate' not found #3756

gvash opened this issue Apr 15, 2024 · 9 comments

Comments

@gvash
Copy link

gvash commented Apr 15, 2024

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 5.20.0

react-native version: 0.72.7

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

Configuration:

(@sentry/react-native)

      attachThreads: true,
      beforeSend: beforeSend,
      debug: __DEV__,
      dist,
      dsn: config.SENTRY_DSN,
      enableAutoSessionTracking: true,
      enableNative: false,
      integrations,
      release,
    };

I have the following issue:

Upon upgrading to 5.20.0, I'm able to build for Android but not for iOS. Below the error that I'm getting while building my app using Xcode v15.2

Screenshot 2024-04-15 at 3 10 45 PM Screenshot 2024-04-15 at 3 11 31 PM
@krystofwoldrich
Copy link
Member

krystofwoldrich commented Apr 15, 2024

@gvash Hi, thank you for the message,
the Sentry RN SDK ships with Sentry cocoapod version8.21.0, can you confirm this version is installed, when running pod install?

Do you use any custom GCC compiler flags, possibly related issue?

@gvash
Copy link
Author

gvash commented Apr 15, 2024

@krystofwoldrich
Screenshot 2024-04-15 at 10 12 59 PM

  1. Yes, the cocoapod version is 8.21.0
  2. No, I'm not using any Custom GCC. Already checked that issue raised by MetaMask but no help.

@krystofwoldrich
Copy link
Member

@gvash Would you be able to share a minimal reproducible example that we could investigate?

@krystofwoldrich
Copy link
Member

@brustolin Do you any recommendation on what to try?

@brustolin
Copy link
Contributor

brustolin commented Apr 17, 2024

This is strange. Never seen this before.
Since we have removed SentryPrivate from the cocoa SDK, the next RN release wont have this problem.
Any ETA for the next release?

@krystofwoldrich
Copy link
Member

Thank you that's a good point.

The next release of the React Native SDK that will include the latest sentry-cocoa without SentryPrivate will be released this week. Most likely version 5.22.0.

@gvash
Copy link
Author

gvash commented Apr 17, 2024

I purely see this as an auto linking issue.
Are you guys removing SentryPrivate or what?

@brustolin
Copy link
Contributor

I purely see this as an auto linking issue.
Are you guys removing SentryPrivate or what?

I dont know why you're having problems with linking and cocoapod, this is our first issue about this.
We did remove SentryPrivate from our native SDK, so, dont matter what is going on with your build setup, this will be solved as soon we release the next RN SDK.

@krystofwoldrich
Copy link
Member

https://github.com/getsentry/sentry-react-native/releases/tag/5.22.0 Doesn't contain SentryPrivate. Please feel free to comment here if you are still having this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Archived in project
Development

No branches or pull requests

3 participants