hyochan / react-native-audio-recorder-player

react-native native module for audio recorder and player.
MIT License
715 stars 213 forks source link

RNAudioRecorderPlayer.modulemap not found #450

Open musabgulfam opened 2 years ago

musabgulfam commented 2 years ago

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.

hyochan commented 2 years ago

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

musabgulfam commented 2 years ago

Upgraded to version 3.5.0 but error still persists...

hyochan commented 2 years ago

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?

AlexSmirnov9107 commented 2 years ago

same here

albert2102 commented 2 years ago

same here for M1

musabgulfam commented 2 years ago

@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.

anandpandey2414 commented 2 years ago

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
WilliamPeralta commented 2 years ago

i have same problem :/

musabgulfam commented 2 years ago

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

thinkmobilede commented 2 years ago

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.

MohammadAzimi commented 1 year ago

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.

LeNgoc82 commented 11 months ago

Same issue

hingWHT commented 10 months ago

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