getsentry / sentry-react-native

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

SentryPrivate.modulemap not found #3921

Closed ospfranco closed 2 days ago

ospfranco commented 5 days ago

OS:

Platform:

SDK version: 5.24.1

react-native version: 0.73.1

Are you using Expo?

Are you using sentry.io or on-premise?


I have the following issue:

I'm using sentry for macOS. I just updated to the latest version. However when I try to compile my app in release mode I get the following exception:

OSP 000065

On debug everything compiles correctly, it's only when I try to compile on release that it fails. Any idea what might be going on?

As I side note, when I updated the package and did a pod install the SentryPrivate pod was removed from the project.

krystofwoldrich commented 3 days ago

Hi @ospfranco, thank you for the message, from the current information I'm not sure what could cause this error.

Do you use OTHER_CFLAGS, APPLICATION_EXTENSION_API_ONLY or any other compiler flags? Do some of there differ between debug and release?

ospfranco commented 2 days ago

Nope, don't user any other flag.

krystofwoldrich commented 2 days ago

Got it thank you.

Are you able to reproduce it in a new react-native-macos project?

We recently added macos sample app to our sample, but it build with the latest SDK.

The command I use:

xcodebuild \
    -workspace sentry-react-native-sample.xcworkspace \
    -configuration "Release" \
    -scheme sentry-react-native-sample-macOS \
    -destination 'platform=macOS' \
    ONLY_ACTIVE_ARCH=yes \
    -derivedDataPath "$derivedData" \
    build
ospfranco commented 2 days ago

Thanks for the reply, it seems indeed it builds on a completely new project. So it has to be some migration artifact. I will keep trying to resolve it on my side.