Closed zabojad closed 4 years ago
OK, for anyone having the same issue, in my info.plist, my Bundle name
was set to $(PRODUCT_NAME)
which indeed had a space in its value. You can check this value there.
I removed the space and it worked fine like before.
@zabojad I am having same problem but what if I want to release the app name with 2 words (contains space)?
Removing the spaces from my Target Name solved the issue , you can keep the display name with spaces that's not an issue
React Native : 0.59.10 react-native-sound : 0.11.0
Not being able to have a Display Name with a space in it seems like an annoying constraint and a bug (especially since this didn't use to be the case).
Edit: With further investigation I noticed that just setting "Bundle name" to a value without spaces seems to be enough. "Bundle display name" can still have spaces in it. You can set these values in your Info.plist file.
Just wrap basePath
in encodeURIComponent
and everything will work
var SOUND_PRESS = new Sound(getSoundName('sound_press'), encodeURIComponent(Sound.MAIN_BUNDLE));
I've updated an existing project from RN 0.59 and RNS 0.10.12 to RN 0.61 and RNS 0.11. Now, sounds from bundle do not play on iOS.
I get the following error:
Note that:
the ring_bip.mp3 file is correctly added to the XCode project and attached to the main target
my target name does not have any space nor special character in its name
Is this a regression of react-native-sound ?
On the same ios version, RNS 0.10.12 was not having this problem...
Any help would be greatly appreciated.
Is your issue with...
Are you using...
react-native run-android
)Which versions are you using?
Does the problem occur on...
If your problem is happening on a device, which device?