question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The operation couldn’t be completed. (OSStatus error -10875.)

See original GitHub issue

Hello, guys. I have the following error when trying to play a sound. I will attach an image of the error below. Here is my code:

import Sounddd from 'react-native-sound';
const sTest = new Sounddd('test.mp3', Sounddd.MAIN_BUNDLE, (error) => {
			if (error) {
				console.log('failed to load the sound', error);
				return;
			}
			// loaded successfully
			console.log('duration in seconds: ' + sTest.getDuration() + 'number of channels: ' + sTest.getNumberOfChannels());
		});

		sTest.play((success) => {
			if (success) {
				console.log('successfully finished playing');
			} else {
				console.log('playback failed due to audio decoding errors');
			}
		});

screen shot 2017-02-27 at 1 11 36 pm screen shot 2017-02-27 at 1 11 07 pm

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:22

github_iconTop GitHub Comments

31reactions
shindigitalcommented, Jan 28, 2020

Hi for what it’s worth, I’ve been getting this error and after rolling my project back to earlier commits I discovered that sound stopped working after I changed the project’s “Display Name” to something with a space in it. Going back to a name without spaces made it work again.

11reactions
Ali-Ayyadcommented, Feb 28, 2017

@zakster12 had the same problem related to the audio path , made it work by using const requireAudio = require('./test.mp3');

const s = new Sound(requireAudio, (e) => {
      if (e) {
        console.log('error', e);
        return;
      }
      s.play(() => s.release());
      });
Read more comments on GitHub >

github_iconTop Results From Across the Web

The operation couldn't be completed. (OSStatus error -10875.)
I add NSAllowsArbitraryLoads(YES) to Info.plist, and then is work fine. 3 jiabinxu, ...
Read more >
The operation couldn't be completed (OSStatus error -10875)
The operation couldn't be completed (OSStatus error -10875)
Read more >
The operation couldn't be completed (OSStatus error 1119.)
This message comes after a while when connecting the iPhone XS Max to Macbook with 10.15. Any ideas, how to get the iPhone...
Read more >
React-Native Audio won't play on IOS Simulator (OSStatus ...
This error occurs when you are trying to access a file which is not present in the specified folder or can not be...
Read more >
OSStatus — Apple API Errors
Look up Apple API error codes, for Mac OS X, iOS, watchOS, and tvOS. ... 10, Due to the current protection policy in...
Read more >

github_iconTop Related Medium Post

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