rn-fetch-blob
rn-fetch-blob copied to clipboard
duplicated symbold
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)
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.
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
Yeah same, on android is working, but on IOS, cant be build or debug
@am2619015 because I am using react-native-blob-util, it's make duplicate symbols, just remove it then my ios project work namlly
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)
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
thanks @RonRadtke now it's working
@RonRadtke Thanks, too.
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