In version 0.11.1 this issue continue in IOS "code": "ENSOSSTATUSERRORDOMAIN-10875", "domain": "NSOSStatusErrorDomain", "message": "The operation couldn’t be completed. (OSStatus error -10875.)

See original GitHub issue

🪲 In version 0.11.1 this issue continue in IOS “code”: “ENSOSSTATUSERRORDOMAIN-10875”, “domain”: “NSOSStatusErrorDomain”, “message”: "The operation couldn’t be completed. (OSStatus error -10875.)

🪲 What is the observed behavior?

🪲 What is the expected behavior?

🪲 Please post your code:

// Please post your code

💡 Does the problem have a test case?

💡 Possible solution

💡 Is there a workaround?

💡 If the bug is confirmed, would you be willing to create a pull request?

Is your issue with…

  • [ Yes] iOS
  • [ No] Android
  • [- ] Windows

Are you using…

  • [ YES] React Native CLI (e.g. react-native run-android)
  • Expo
  • Other: (please specify)

Which versions are you using? 0.64.2

  • React Native Sound:
  • React Native:
  • iOS:
  • Android:
  • Windows:

Does the problem occur on… Both

  • Simulator
  • Device

If your problem is happening on a device, which device?

  • Device:

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

3reactions
gilshaancommented, Mar 29, 2022

Pass second argument as ‘’ for ios and Sound.DOCUMENT or other values for android. Please see the below code

var whoosh = new Sound(path + '/audio/test.mp3', Platform.OS === 'ios' ? '' : Sound.DOCUMENT, (error) => {
                  if (error) {
                    console.log('failed to load the sound', error);
                    return;
                  }
                });

My issue got resolved by doing this.

0reactions
qtipeecommented, Oct 3, 2022

When upgrading from 0.11.0 to 0.11.2 I also ran into this issue. What I found that worked was changing my MainBundleDir from const MainBundleDir = Platform.OS === 'ios' ? encodeURI(RNSound.MAIN_BUNDLE) : null to const MainBundleDir = Platform.OS === 'ios' ? RNSound.MAIN_BUNDLE : null

Removing encodeUri worked because it is now being escaped in the native code, whereas in version 0.11.0 it was not.

Where do you do that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Profile could not be decrypted dur… | Apple Developer Forums
Profile could not be decrypted during MDM profile download iOS. ... Underlying error: NSError: Desc : The operation couldn't be completed.
Read more >
react-native-sound - Bountysource
In version 0.11.1 this issue continue in IOS "code": "ENSOSSTATUSERRORDOMAIN-10875", "domain": "NSOSStatusErrorDomain", "message": "The operation couldn't be ...
Read more >
Some audio url not playing on ios react native - Stack Overflow
{ code: "ENSOSSTATUSERRORDOMAIN1954115647", message: "The operation couldn't be completed. (OSStatus error 1954115647.) ...
Read more >
react-native-sound/Help - Gitter
Following this I see failed to load the sound with an object: code: "ENSOSSTATUSERRORDOMAIN2003334207", message: "The operation couldn't be completed. (OSStatus ...
Read more >
an error was encountered processing the command (domain ...
iOS Swift : Error Domain=NSOSStatusErrorDomain Code=-12792? ... I was able to solve this issue by the following approach. ... Get this error message:....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found