RNAudioRecorderPlayer.modulemap not found

See original GitHub issue

Please fill the template to help you out. Also, please try the Example project compare before submiting the issue when you have certain issue with your project setup.

Version of react-native-audio-recorder-player

“react-native-audio-recorder-player”: “^3.3.0”

Version of React Native

“react-native”: “0.65.1”

Platforms you faced the error (IOS or Android or both?)

iOS

Expected behavior

Build succeeded

Actual behavior

Build failed

When I am trying to build the iOS project, the following error appears, and the build fails. Following is the error.

module map file '/Users/musabgulfam/Library/Developer/Xcode/DerivedData/myfriendsroom-dsfcxfbdkcvzjffdfrrspbydyvtt/Build/Products/Debug-iphonesimulator/RNAudioRecorderPlayer/RNAudioRecorderPlayer.modulemap' not found

I have tried to re-install pods, re-install node modules, cleaning build folder, also tried arch -x86_64 pod cache clean --all, but to no avail.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
hyochancommented, May 28, 2022

Could you kindly try 3.5.0 and come back? Please use the recent version of the library.

0reactions
thinkmobiledecommented, Jul 13, 2022

I was getting the same error and finally realized there are a lot of wrong solutions on SO etc., so I share what solved it for me:

First, don’t run Xcode with Rosetta, as mentioned here this is not recommended: https://developer.apple.com/documentation/technotes/tn3117-resolving-build-errors-for-apple-silicon

I excluded arm64 in my pod-file which was supposed to solve the problem together with running on rosetta. So I removed the EXCLUDED_ARCHS setting. I also removed the snippet in my Podfile which was doing exactly this. So if you have a snippet in your Podfile saying something withe EXCLUDED_ARCHS and arm64, remove that part and run pod-install again.

Lastly I got problems that Swift was not included, there are a lot or recommendations to fix this with a dummy file, and add the bridging header, finally the correct build setting was for me with the SDK-ROOT from this post: https://stackoverflow.com/a/65602500/1505074

Hope it helps other people as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix cocoapod .modulemap file not found - Stack Overflow
When I try to build my project, I get a compile time error saying that a "Module map file" for my pod cannot...
Read more >
module map file '/Users/hosein/Lib… | Apple Developer Forums
I am running into the exact same issue with a new M1 macbook pro. I was able to create a brand new React...
Read more >
ios emulator build fails - RevenueCat Community
Building works fine on a physical device but fails on emulator with this error: fatal error: module map file '/Users/xxxxxx/Library/Developer/ ...
Read more >
YogaKit ModuleMap Missing : r/reactnative - Reddit
fatal error : module map file ... .noindex/ArchiveIntermediates/myapp/BuildProductsPath/Release-iphoneos/YogaKit/YogaKit.modulemap' not found.
Read more >
Apple M1 + React Native was not exactly what we thought but ...
This error is due to the Apple M1 not being to compile the app to run with ... /Debug-iphonesimulator/YogaKit/YogaKit.modulemap' not found.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found