xuyuanzhou / react-native-yz-vlcplayer

VLC Player for react-native
MIT License
152 stars 52 forks source link

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

Open lp4298707 opened 5 years ago

lp4298707 commented 5 years ago

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)

namsna commented 4 years ago

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 commented 4 years ago

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

1van-rus commented 4 years ago

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

yarn add react-native-svg@9.3.7

Podfile

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