react-native-yz-vlcplayer icon indicating copy to clipboard operation
react-native-yz-vlcplayer copied to clipboard

1 duplicate symbol for architecture arm64(ios构建报错)

Open lp4298707 opened this issue 5 years ago • 3 comments

duplicate symbol _distance in: /Users/user/Library/Developer/Xcode/DerivedData/weight-dcsrolxzvuztosdzfondrtqizpws/Build/Products/Debug-iphoneos/libRNSVG.a(UIBezierPath+Util.o) /Users/user/project/newWeightApp2.0/vlcKit/MobileVLCKit.framework/MobileVLCKit(tools.c.o) ld: 1 duplicate symbol for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

lp4298707 avatar Nov 04 '19 03:11 lp4298707

I got same error.

duplicate symbol '_distance' in: /Users/namtran/Library/Developer/Xcode/DerivedData/xxxxx-cnkfbfmejgwnrgdjwcktivwklalt/Build/Products/Debug-iphonesimulator/RNSVG/libRNSVG.a(RNSVGPathMeasure.o) /Users/namtran/Desktop/factorynowreact/ios/Pods/MobileVLCKit/MobileVLCKit-binary/MobileVLCKit.framework/MobileVLCKit(tools.c.o) ld: 1 duplicate symbol for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

namsna avatar Nov 19 '19 02:11 namsna

I uninstall 'react-native-svg' to fix the above error, But this is not good solution.

namsna avatar Nov 19 '19 02:11 namsna

Hi, I fix it by downgrading react-native-svg to 9.3.7

yarn add [email protected]

Podfile

pod 'RNSVG', :path => '../node_modules/react-native-svg'
pod 'MobileVLCKit', '3.3.1'

1van-rus avatar Jan 29 '20 06:01 1van-rus