hyochan / react-native-audio-recorder-player

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

Facing issue of Recording file not created #541

Open mariasadeeq160 opened 1 year ago

mariasadeeq160 commented 1 year ago

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

bilalmustafa965 commented 1 year ago

@hyochan facing same issue. Can you help please?

zhekaqq commented 1 year ago

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