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

sentry-cocoa Unknown receiver 'SwiftDescriptor' #3765

Open
5 of 9 tasks
TrustDec opened this issue Apr 18, 2024 · 7 comments
Open
5 of 9 tasks

sentry-cocoa Unknown receiver 'SwiftDescriptor' #3765

TrustDec opened this issue Apr 18, 2024 · 7 comments

Comments

@TrustDec
Copy link

TrustDec commented Apr 18, 2024

OS:

  • MacOS

Platform:

  • iOS
  • Android

SDK:

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

SDK version: 5.22.0

react-native version: 0.73.6

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

I have the following issue:
iOS cannot be built. After upgrading @sentry/react-native 5.20 to 5.22, it cannot be built and can't be downgraded.
image

And when executing npx @sentry/wizard -s -i reactNative, an error is displayed:
TypeError: Cannot read properties of null (reading 'token')
image

@krystofwoldrich
Copy link
Member

Hi @TrustDec,
thank you for the message,
are you using statically or dynamically linked frameworks?

Have you clean the build and reinstalled pods after upgrading to 5.22.0?

@krystofwoldrich
Copy link
Member

This error is coming from sentry-cocoa.

We will keep this issue open until resolved in RN. But expect most of the updates in the linked issue.

@pestrige
Copy link

pestrige commented Apr 20, 2024

The same issue after upgrading to @sentry/react-native@5.22.0. The solution for me is downgrade to v5.20.0:

yarn add @sentry/react-native@5.20.0
cd ios && pod update Sentry

@TrustDec
Copy link
Author

Hi @TrustDec, thank you for the message, are you using statically or dynamically linked frameworks?

Have you clean the build and reinstalled pods after upgrading to 5.22.0?

Yes, after the upgrade, the project was cleaned up and rebuilt like this.

@TrustDec
Copy link
Author

The same issue after upgrading to @sentry/react-native@5.22.0. The solution for me is downgrade to v5.20.0:

yarn add @sentry/react-native@5.20.0
cd ios && pod update Sentry

I tried to solve this problem in this way.The only way I can solve it now is to uninstall Sentry and delete the Sentry-related code.
image

@krystofwoldrich
Copy link
Member

@TrustDec @pestrige Would you be able to share a minimal reproducible example with us, that would help us debugging the issue.

@krystofwoldrich krystofwoldrich changed the title iOS cannot be built after upgrading. sentry-cocoa Unknown receiver 'SwiftDescriptor' Apr 26, 2024
@krystofwoldrich
Copy link
Member

Hi @TrustDec and @pestrige,
this issue might be relater to APPLICATION_EXTENSION_API_ONLY=NO, Sentry requires this option to be set to YES, this is how the Sentry Pod is setup by default. But it's possible that this configuration was overwritten in your case.

Can you verify APPLICATION_EXTENSION_API_ONLY=YES for the Sentry Pod in your application, or share your Pod file with us?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Status: Waiting for: Community
Status: Needs More Information
Development

No branches or pull requests

4 participants