flash-list: bug: 🐛 /RNFlashList/RNFlashList.modulemap not found

Current behavior

I am trying to build my project on macos with xcode build but I’m getting the below build error. everything is ok in android. /Users/mypc/Library/Developer/Xcode/DerivedData/myApp/Build/Products/Debug-iphonesimulator/RNFlashList/RNFlashList.modulemap' not found

To Reproduce

Every time I install this library on the latest react native version, I get this error while running on ios. I updated it in xcode as an extra

I have tried

  1. Clear de DerivedData folder
  2. Clean Build Folder
  3. Reboot the mac
  4. I deleted node modules and podfile.lock and reinstalled

Platform:

  • iOS

Environment

@shopify/flash-list : 1.4.3 react-native: 0.71.10

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 16

Most upvoted comments

you should open .xcworkspace file

For me the fix was to use a rosetta simulator. This may happen because you are using the latest Xcode version and have an old react native codebase that can’t handle the new arquitecture. To enable rosetta emulator set it up on xcode:

xcode > product (top menu item) > product destination > show rosetta destinations

this issue keep persisting with me, i updated Cocopods and xcode, deleted Podfile.lock and Pods folder, any better ideas? @Skipperlla, also can you specify a version of cocopads that is fixing the issue, btw i have react-native 0.72.4

@Skipperlla thanks you save my day

@Aman121K clear all cache, update the package and I guess it will be fixed

you should open .xcworkspace file你应该打开 .xcworkspace 文件

Dude, I was about to go insane and you just saved me. Thank you!

In my workplace everybody was using Mac with Intel chip, no issues, but one had a Mac with M2 chip, he had the issue The solution was to tell Xcode to run on Rosetta, maybe it will help some of you

The things I generally do are:

  • Deleting Podfile.lock and re-downloading it
  • As I said at first Cocopods was to update
  • As an extra, if your xcode and simulator are not up to date, you can update and try again.

You can also try to delete Derived data and make a clean build folder from Xcode @johnchiout @leaf541

I’m facing the same issue, did anyone find any fix?