When creating a clean project (react-native init):
run NPM install react-native-sound
run react-native link react-native-sound
then run the Xcode project on an iPhone device,
the app crash the moment is loads with:
"dyld: Symbol not found: ___NSArray0__"
While investigating I found that in Xcode's Link Binary With Libraries, if I remove the line of "libRNSound.a" then the crash disappears.
This happens with [email protected] up to the latest [email protected]
The version of react-native-sound is 0.10.4
(On Android everything runs fine)
Which version of XCode do you have and which version of iOS on your device?
xcode version: Version 8.3.3 (8E3004b)
iphone4 4s: 8.1.3(12B466)
Is this the only error message you get? Could you paste the complete error message?
Hi, I also same problem.
dyld: Symbol not found: ___NSArray0__
Referenced from: /private/var/mobile/Containers/Bundle/Application/8B40C8BE-5816-495B-98BF-2E43A2B4009B/soundATM.app/soundATM
Expected in: /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
in /private/var/mobile/Containers/Bundle/Application/8B40C8BE-5816-495B-98BF-2E43A2B4009B/soundATM.app/soundATM
(lldb)
Could you try to add CoreFoundation.framework with the 'optional' flag to the Linked Frameworks and libraries in XCode?
@agumack You're also on iOS 8.x?
@gvenk getting the same error as @agumack
@yaronlevi Did you try it with adding the CoreFoundation.framework to the Linked Frameworks in XCode? (with flag optional)
Will try later and come back with results
@gvenk @yaronlevi Getting the same error on iOS 8. After tried adding the CoreFoundation.framework in XCode, it seems to work fine. Many thanks!
@junjunconan that's good to hear!
If @yaronlevi can confirm this also, this issue can be closed.

Yes! adding the lib as in the above image solves the issue. (Mind the optional flag).
That's good to hear, thanks.
Maybe we have to add this to the documentation: iOS8 needs the CoreFoundation.framework (optional flag enabled).
Seems that iOS 8 requires the UIKit.framework to be linked in addition to CoreFoundation.framework. 馃憤
Most helpful comment
Yes! adding the lib as in the above image solves the issue. (Mind the optional flag).