React-native-sound: The operation couldn’t be completed. (OSStatus error 2003334207.)

Created on 2 Jul 2017  Â·  6Comments  Â·  Source: zmxv/react-native-sound

I occasionally encounter this error and I don't know what causes it. Below is what is printed to the console:

* Object {code: "ENSOSSTATUSERRORDOMAIN2003334207", message: "The operation couldn’t be completed. (OSStatus error 2003334207.)", nativeStackIOS: Array(18), domain: "NSOSStatusErrorDomain", userInfo: Object}
    * code:"ENSOSSTATUSERRORDOMAIN2003334207"
domain:"NSOSStatusErrorDomain"
message:"The operation couldn’t be completed. (OSStatus error 2003334207.)"
nativeStackIOS:Array(18)
userInfo:Object
__proto__:Object


Most helpful comment

same error, any one find the solution ?
Advanced,
Thanks

All 6 comments

So do I

Duplicate of https://github.com/zmxv/react-native-sound/issues/64#issuecomment-312381532 - check out answers in that thread.

I use the network file and I have the same error

Had this problem.
Solved it by adding Sound.MAIN_BUNDLE to the Sound constructor and moving the .mp3 files to the resources folder of the project in XCode.

_(Note: Keeps working on Android without problems)_

Constructor
var Beep = new Sound('beep_high.mp3', Sound.MAIN_BUNDLE);

Folder structure

334

same error, any one find the solution ?
Advanced,
Thanks

Was this page helpful?
0 / 5 - 0 ratings