hyochan / hyochan/react-native-nitro-sound

Ios release build "Recording setup failed: Failed to prepare recorder"

Open
#766 19 comments 5 reactions 0 assignees View on GitHub
🐛 bug 👷‍♀️ build 📱 iOS 🤖 ai-managed
Dominant language
TypeScript
Stars
962
Forks
254
Avg merge
1d 4h
Merged PRs (30d)
1

Description

### Before submitting a new issue

- [x] I tested using the latest version of the library, as the bug might be already fixed.
- [x] I tested using a [supported version](https://github.com/reactwg/react-native-releases/blob/main/docs/support.md) of react native.
- [x] I checked for possible duplicate issues, with possible answers.

### Bug summary

When using the library to attempt to record audio, our users get this following generic error coming from react-native-nitro-sound : "Recording setup failed: Failed to prepare recorder" on IOS devices with release build

This is very difficult to troubleshoot because the recorder does not exhibit the same behavior in the ios simulator or when run on device directly from xcode development build - only occurs with a release build on device.

### Library version

0.2.10

### Project type

React Native (bare workflow)

### React Native version

0.83.1

### Expo SDK version (if applicable)

_No response_

### Environment info

```shell
System:
OS: macOS 15.7.4
CPU: (10) arm64 Apple M1 Max
Memory: 235.80 MB / 64.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.17.1
path: /Users/xxx/.nvm/versions/node/v22.17.1/bin/node
Yarn:
version: 1.22.22
path: /Users/xxx/.nvm/versions/node/v22.17.1/bin/yarn
npm:
version: 10.9.2
path: /Users/xxx/.nvm/versions/node/v22.17.1/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.5
- iOS 18.5
- macOS 15.5
- tvOS 18.5
- visionOS 2.5
- watchOS 11.5
Android SDK:
API Levels:
- "31"
- "33"
- "33"
- "34"
- "35"
- "36"
Build Tools:
- 30.0.2
- 30.0.3
- 31.0.0
- 33.0.0
- 33.0.1
- 34.0.0
- 35.0.0
- 36.0.0
System Images:
- android-31 | ARM 64 v8a
- android-31 | Google APIs ARM 64 v8a
- android-33-ext4 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2025.1 AI-251.25410.109.2511.13752376
Xcode:
version: 16.4/16F6
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.12
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.0.0
wanted: 20.0.0
react:
installed: 19.2.0
wanted: 19.2.0
react-native:
installed: 0.83.1
wanted: ^0.83.1
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
```

### Steps to reproduce

1. startRecorder() call with options similar to the linked gist on release build IOS
2. error

### Reproducible example repository

https://gist.github.com/h3knix/c49753019ed2b4cdc32ea4db6ceb68dc

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.