react-native-audio-recorder-player icon indicating copy to clipboard operation
react-native-audio-recorder-player copied to clipboard

RNAudioRecorderPlayer.modulemap not found

Open musabgulfam opened this issue 2 years ago • 13 comments

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.

musabgulfam avatar May 20 '22 18:05 musabgulfam

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

hyochan avatar May 28 '22 13:05 hyochan

Upgraded to version 3.5.0 but error still persists...

musabgulfam avatar May 29 '22 08:05 musabgulfam

Upgraded to version 3.5.0 but error still persists...

Could you please make some reproducible example so that I can look into? Did you also try the example project in the repo?

hyochan avatar May 30 '22 08:05 hyochan

same here

AlexSmirnov9107 avatar Jun 05 '22 06:06 AlexSmirnov9107

same here for M1

albert2102 avatar Jun 05 '22 17:06 albert2102

@AlexSmirnov9107 @albert2102 A reproducible example will be appreciated...

In my case it's a private project, owner of the project isn't allowing it to be public at the moment.

musabgulfam avatar Jun 05 '22 18:06 musabgulfam

facing the same issue with XCode

Any Solutions?

"react-native-audio-recorder-player": "^3.5.1",

Error : module map file '/Users/xyz/Library/Developer/Xcode/DerivedData/ProjectName_ID/Build/Products/Debug-iphonesimulator/RNAudioRecorderPlayer/RNAudioRecorderPlayer.modulemap' not found

Steps to produce:

  1. yarn add react-native-audio-recorder-player
  2. cd ios && pod install && cd .. && yarn run ios OR Run from XCode you will find the same error as bundle start

anandpandey2414 avatar Jun 26 '22 09:06 anandpandey2414

i have same problem :/

WilliamPeralta avatar Jul 03 '22 21:07 WilliamPeralta

@WilliamPeralta, a reproducible example will be appreciated...

musabgulfam avatar Jul 03 '22 21:07 musabgulfam

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.

thinkmobilede avatar Jul 13 '22 08:07 thinkmobilede

I had same issue while building my app for release via Xcode. Opening my project by .xcworkspace instead of .xcodeproject in Xcode and building the project fixed my issue.

MohammadAzimi avatar Jan 17 '23 22:01 MohammadAzimi

Same issue

LeNgoc82 avatar Nov 08 '23 15:11 LeNgoc82

I had same issue while building my app for release via Xcode. Opening my project by .xcworkspace instead of .xcodeproject in Xcode and building the project fixed my issue.

work for me

hingWHT avatar Dec 01 '23 09:12 hingWHT