React-native-sound: ios compilation issue

Created on 5 Feb 2018  路  2Comments  路  Source: zmxv/react-native-sound

Hi, I get this error on running run-ios command

ld: library not found for -lRNSound-tvOS
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

The following commands produced analyzer issues:

    Analyze /Users/prashanth/SoundDemo/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp
    Analyze Base/RCTModuleMethod.mm
(2 commands with analyzer issues)

The following build commands failed:
    Ld build/Build/Products/Debug-iphonesimulator/SoundDemo.app/SoundDemo normal x86_64
(1 failure)
build ios

Most helpful comment

same here, I am using:
"react": "16.2.0",
"react-native": "0.52.2",
Xcode Version 9.2 (9C40b)

ld: library not found for -lRNSound-tvOS
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@prashantham Workaround: You can manually delete libRNDeviceInfo-tvOS.a in Xcode -> [Your iOS build target] -> Build Phrases -> Link Binary with Libraries.

All 2 comments

same here, I am using:
"react": "16.2.0",
"react-native": "0.52.2",
Xcode Version 9.2 (9C40b)

ld: library not found for -lRNSound-tvOS
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@prashantham Workaround: You can manually delete libRNDeviceInfo-tvOS.a in Xcode -> [Your iOS build target] -> Build Phrases -> Link Binary with Libraries.

I believe this issue was fixed in https://github.com/zmxv/react-native-sound/pull/357
I haven't made a new release yet.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rgouzal picture rgouzal  路  9Comments

dereksweet picture dereksweet  路  11Comments

oxilor picture oxilor  路  11Comments

nukc picture nukc  路  11Comments

adrian621 picture adrian621  路  15Comments