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.modulemap not found when compiling #3005

Closed
5 of 11 tasks
wmonecke opened this issue Apr 24, 2023 · 10 comments
Closed
5 of 11 tasks

Sentry.modulemap not found when compiling #3005

wmonecke opened this issue Apr 24, 2023 · 10 comments

Comments

@wmonecke
Copy link

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

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

SDK version: "@sentry/react-native": "^5.3.1",

react-native version: 0.71.1

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

I have following issue:

After upgrading from RN 0.64.0 to 0.71.1 I get the following error when trying to run the app

▸ Running script '[CP] Check Pods Manifest.lock'
▸ Running script 'Start Packager'
▸ Compiling AppDelegate.mm

❌  fatal error: module map file '/Users/wmonecke/Library/Developer/Xcode/DerivedData/Aware-cjblibktshvnbndryliyqqfitzxc/Build/Products/Debug-iphonesimulator/Sentry/Sentry.modulemap' not found

Actual result:

image

Expected result:

The app to compile when I run npm run start

@krystofwoldrich
Copy link
Member

Hi,
thank you for the message, have you tried to clean-build the app? Use

# Remove pods and drivedData
rm -rf Podfile.lock Pods /Users/wmonecke/Library/Developer/Xcode/DerivedData/Aware-cjblibktshvnbndryliyqqfitzxc

and install pods again.

@wmonecke
Copy link
Author

@krystofwoldrich I have done so twice now to no avail!

@23mwest
Copy link

23mwest commented Apr 24, 2023

If you haven't already, try updating your Xcode to 14.3

@wmonecke
Copy link
Author

wmonecke commented Apr 24, 2023

@23mwest Downloaded 14.3, deleted derived data, product clean, and start a new build from xCode and still got the same error.

image

@krystofwoldrich
Copy link
Member

@wmonecke Would you be able to share a minimal reproducible example?

This might be sentry-cocoa related, do you have an idea what could cause it @philipphofmann, @brustolin?

@philipphofmann
Copy link
Member

This looks like a problem with CocoaPods. This StackOverflow question has some possible solutions. I'm not sure what could cause this in the RN environment.

@krystofwoldrich
Copy link
Member

@wmonecke Hi, did you manage to resolve this?

@krystofwoldrich
Copy link
Member

Closing this due to inactivity. If this is still an issue feel free to comment here or open a new issue if the context changed.

@3braintechnologies
Copy link

issue is still there

@sa-ma
Copy link

sa-ma commented Jun 24, 2024

I started experiencing this problem recently. It works if I run yarn run ios but throws this error when I use XCode

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

No branches or pull requests

6 participants