sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

SentryPrivate.modulemap not found

Open ospfranco opened this issue 1 year ago • 2 comments

OS:

  • [ ] Windows
  • [X] MacOS
  • [ ] Linux

Platform:

  • [ ] iOS
  • [ ] Android
  • [X] MacOS SDK:
  • [X] @sentry/react-native (>= 1.0.0)
  • [ ] react-native-sentry (<= 0.43.2)

SDK version: 5.24.1

react-native version: 0.73.1

Are you using Expo?

  • [ ] Yes
  • [X] No

Are you using sentry.io or on-premise?

  • [X] sentry.io (SaaS)
  • [ ] 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.

ospfranco avatar Jun 30 '24 18:06 ospfranco

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?

krystofwoldrich avatar Jul 02 '24 14:07 krystofwoldrich

Nope, don't user any other flag.

ospfranco avatar Jul 03 '24 16:07 ospfranco

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

krystofwoldrich avatar Jul 04 '24 08:07 krystofwoldrich

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.

ospfranco avatar Jul 04 '24 09:07 ospfranco

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.

@ospfranco Are you able to resolve it? Currently facing this issue on XCode 16 with [email protected]

akshaysngt avatar Sep 24 '24 19:09 akshaysngt

uhm no, I had forgotten about this actually. Right now I'm on 5.24.3 and it's working, did not try with the latest versions yet.

ospfranco avatar Sep 24 '24 19:09 ospfranco