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

Facing issue of Recording file not created

Open mariasadeeq160 opened this issue 11 months ago • 2 comments

I am new in react native I have used react-native-audio-recorder-player library with 3.5.3 But I am facing issue if I don't follow this step In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name] Go to node_modules ➜ react-native-audio-recorder-player and add RNAudioRecorderPlayer.xcodeproj In XCode, in the project navigator, select your project. Add libRNAudioRecorderPlayer.a to your project's Build Phases ➜ Link Binary With Libraries then recorded file not created but if I follow above step then I am facing issue of React/RCTBridgeModule.h file not found.

Version of react-native-audio-recorder-player

Version of React Native

Platforms you faced the error (IOS)

Expected behavior

Actual behavior

Steps to reproduce the behabior

mariasadeeq160 avatar Aug 20 '23 15:08 mariasadeeq160

@hyochan facing same issue. Can you help please?

bilalmustafa965 avatar Aug 24 '23 13:08 bilalmustafa965

just read the documentation,

Step 1 find library folder Screenshot 2023-09-17 at 21 29 23

Step 2 right click, "Add file to YOUR_PROJECT_NAME" Screenshot 2023-09-17 at 21 31 20

Step 3 navigatate to ur project directory, then node_modules -> react-native-audio-recorder-plauyer -> ios -> RNAudioRecorderPlayer.xcodeproj, and click add Screenshot 2023-09-17 at 21 25 33

Step 4 go to project settings -> Build Phases -> Link Binary With Libaries -> Click + Screenshot 2023-09-17 at 21 49 37

Step 5 selet .a file and click add Screenshot 2023-09-17 at 21 27 19

Step 6 create any swift file Screenshot 2023-09-17 at 21 45 35

Name it as u want Screenshot 2023-09-17 at 21 46 40

Step 7 after creating swift file xcode will automatically ask u to create header bridging file, u need to to click YES(or smth like this)

Step 8 do post install written in library description(it is needed to grant microphone permission to app) Screenshot 2023-09-17 at 21 54 01

DONE after doing these steps u can remove .swift file

zhekaqq avatar Sep 17 '23 18:09 zhekaqq