rn-fetch-blob icon indicating copy to clipboard operation
rn-fetch-blob copied to clipboard

duplicated symbold

Open fukemy opened this issue 2 years ago • 9 comments

hi, i got this problem after install rnfetchblob, please help

duplicate symbol '_bridgeRef' in:
   .../Build/Products/Release-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtil.o)
   .../Build/Products/Release-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlob.o)
duplicate symbol '_fsQueue' in:
    .../Build/Products/Release-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtil.o)
    .../Build/Products/Release-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlob.o)
duplicate symbol '_commonTaskQueue' in:
   .../Build/Products/Release-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtil.o)
  .../Build/Products/Release-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlob.o)
duplicate symbol '_fileStreams' in:
    .../Build/Products/Release-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtilFS.o)
   .../Build/Products/Release-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlobFS.o)
duplicate symbol '_expirationTable' in:
   .../Build/Products/Release-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtilNetwork.o)
   .../Build/Products/Release-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlobNetwork.o)
ld: 5 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

fukemy avatar Jun 28 '22 13:06 fukemy

ReactNativeBlobUtil is a still maintained fork of this lib here. Thus the collision. But there is no need to user rn-fetch-blob. React-native-blob-util can do the same and more, and is fully compatible to this lib here.

RonRadtke avatar Jul 02 '22 19:07 RonRadtke

In Xcode, below your ProjectName, you have Pods. Click on Pods, and you will get list of components under TARGETS. Go to Build settings of both the components(react-native-blob-util and rn-fetch-blob) and set No Common Blocks=No

anoopbk1989 avatar Sep 21 '22 14:09 anoopbk1989

Yeah same, on android is working, but on IOS, cant be build or debug

am2619015 avatar Dec 03 '22 05:12 am2619015

@am2619015 because I am using react-native-blob-util, it's make duplicate symbols, just remove it then my ios project work namlly

fukemy avatar Dec 03 '22 14:12 fukemy

can anyone know what is the actual problem?

duplicate symbol '_fsQueue' in: /Users/macbook/Library/Developer/Xcode/DerivedData/vedaAcademy-deupwmlotwduujghkytxiearynbs/Build/Products/Release-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtil.o) /Users/macbook/Library/Developer/Xcode/DerivedData/vedaAcademy-deupwmlotwduujghkytxiearynbs/Build/Products/Release-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlob.o) duplicate symbol '_commonTaskQueue' in: /Users/macbook/Library/Developer/Xcode/DerivedData/vedaAcademy-deupwmlotwduujghkytxiearynbs/Build/Products/Release-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtil.o) /Users/macbook/Library/Developer/Xcode/DerivedData/vedaAcademy-deupwmlotwduujghkytxiearynbs/Build/Products/Release-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlob.o) duplicate symbol '_fileStreams' in: /Users/macbook/Library/Developer/Xcode/DerivedData/vedaAcademy-deupwmlotwduujghkytxiearynbs/Build/Products/Release-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtilFS.o) /Users/macbook/Library/Developer/Xcode/DerivedData/vedaAcademy-deupwmlotwduujghkytxiearynbs/Build/Products/Release-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlobFS.o) duplicate symbol '_expirationTable' in: /Users/macbook/Library/Developer/Xcode/DerivedData/vedaAcademy-deupwmlotwduujghkytxiearynbs/Build/Products/Release-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtilNetwork.o) /Users/macbook/Library/Developer/Xcode/DerivedData/vedaAcademy-deupwmlotwduujghkytxiearynbs/Build/Products/Release-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlobNetwork.o) ld: 4 duplicate symbols for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

deepbag avatar May 09 '23 14:05 deepbag

You have react-native-blob-util and rnfetchblob installed. Deinstall rnfetchblob and do a clean build and it should work fine. React-native-blob-util is a fork because rnfetchblob is not maintained and thus the duplicate symbols. React-native-blob-util can replace rnfetchblob, only thing to migrate is adjusting the imports

RonRadtke avatar May 09 '23 15:05 RonRadtke

thanks @RonRadtke now it's working

deepbag avatar May 09 '23 18:05 deepbag

@RonRadtke Thanks, too.

ghost avatar Oct 27 '23 06:10 ghost

ReactNativeBlobUtil is a still maintained fork of this lib here. Thus the collision. But there is no need to user rn-fetch-blob. React-native-blob-util can do the same and more, and is fully compatible to this lib here.

it's what it's, thx bro

OguzEkinci avatar Dec 15 '23 11:12 OguzEkinci