Open lp4298707 opened 5 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)
I uninstall 'react-native-svg' to fix the above error, But this is not good solution.
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'
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)